Run cleanup if extracted

Run cleanup if executed

add to SentinelImportTask as well

alternative method

cleanup() already checks self.extracted
This commit is contained in:
David 2014-11-15 17:56:59 -05:00
parent 9611a43872
commit cd80ddbff9

View file

@ -504,6 +504,9 @@ class ImportTask(object):
move=session.config['move'])
self._emit_imported(session.lib)
if isinstance(self, ArchiveImportTask):
self.cleanup()
def cleanup(self, copy=False, delete=False, move=False):
"""Remove and prune imported paths.
"""