mirror of https://github.com/tLDP/python-tldp
only say we are removing, if removing
This commit is contained in:
parent
1c5a75b535
commit
08ef4c35bf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue