Added warning if old files are in rendered_root

This commit is contained in:
Sebastian 2016-11-17 13:15:03 +01:00
parent 4db530ebf7
commit 8bbea2254f
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class Verdandi(object):
def render(self):
if not os.path.exists(self.output_directory):
os.mkdir(self.output_directory)
if os.listdir(self.output_directory) != []:
print "[Warn] Ouput directory is not empty"
for module in self.modules:
module.render(self.output_directory, self.jinja_env)