mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
force clean does't overide delete_failed. Fixes #842
This commit is contained in:
parent
651650f83b
commit
a83311e909
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ def cleanDir(path, section, subsection):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
logger.info('Directory %s has been processed and removed ...' % (path), 'CLEANDIR')
|
logger.info('Directory %s has been processed and removed ...' % (path), 'CLEANDIR')
|
||||||
return
|
return
|
||||||
if core.FORCE_CLEAN:
|
if core.FORCE_CLEAN and not core.FAILED:
|
||||||
logger.info('Doing Forceful Clean of %s' % (path), 'CLEANDIR')
|
logger.info('Doing Forceful Clean of %s' % (path), 'CLEANDIR')
|
||||||
rmDir(path)
|
rmDir(path)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue