Create destination here, not extractor

This commit is contained in:
Clinton Hall 2013-03-01 13:46:17 -08:00
commit f5bfa17354

View file

@ -303,6 +303,7 @@ for dirpath, dirnames, filenames in os.walk(inputDirectory):
Logger.info("MAIN: Found compressed archive %s for file %s", fileExtention, filePath)
source = filePath
target = os.path.join(outputDestination, file)
create_destination(outputDestination)
try:
extractor.extract(dirpath, file, outputDestination)
except: