fix: fix the bug that if fail or success folder only has empty folders, it will also remove the fail or success folder.
This commit is contained in:
2
core.py
2
core.py
@@ -31,7 +31,7 @@ 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 + '/')
|
||||
return
|
||||
return
|
||||
|
||||
|
||||
def get_data_from_json(file_number, filepath, conf: config.Config): # 从JSON返回元数据
|
||||
|
||||
Reference in New Issue
Block a user