only say we are removing, if removing

This commit is contained in:
Martin A. Brown 2016-03-01 18:38:58 -08:00
parent 1c5a75b535
commit 08ef4c35bf
1 changed files with 1 additions and 1 deletions

View File

@ -121,8 +121,8 @@ class OutputDirectory(OutputNamingConvention):
This is done as a matter of course when the output documents must be
regenerated. Better to start fresh.
'''
logger.debug("%s removing dir %s.", self.stem, self.dirname)
if os.path.isdir(self.dirname):
logger.debug("%s removing dir %s.", self.stem, self.dirname)
shutil.rmtree(self.dirname)
def hook_prebuild(self):