fix: failed load config.ini in function moveFailedFolder

This commit is contained in:
oxygenkun
2020-12-26 15:07:30 +08:00
parent 4c31eee978
commit ad541a3756

View File

@@ -34,7 +34,7 @@ def moveFailedFolder(filepath, failed_folder):
root_path = str(pathlib.Path(filepath).parent) root_path = str(pathlib.Path(filepath).parent)
file_name = pathlib.Path(filepath).name file_name = pathlib.Path(filepath).name
destination_path = root_path + '/' + failed_folder + '/' destination_path = root_path + '/' + failed_folder + '/'
if config.Config.soft_link(): if config.Config().soft_link():
print('[-]Create symlink to Failed output folder') print('[-]Create symlink to Failed output folder')
os.symlink(filepath, destination_path + '/' + file_name) os.symlink(filepath, destination_path + '/' + file_name)
else: else: