Merge pull request #382 from bigfoxtail/master

修复failed_move参数无法生效的问题
This commit is contained in:
Yoshiko2
2020-12-24 08:42:21 +08:00
committed by GitHub

View File

@@ -29,8 +29,9 @@ def escape_path(path, escape_literals: str): # Remove escape literals
def moveFailedFolder(filepath, failed_folder):
print('[-]Move to Failed output folder')
shutil.move(filepath, str(os.getcwd()) + '/' + failed_folder + '/')
if config.Config().failed_move():
print('[-]Move to Failed output folder')
shutil.move(filepath, str(os.getcwd()) + '/' + failed_folder + '/')
return