Make paths good looking

This commit is contained in:
Dan 2018-03-21 15:43:58 +01:00 committed by GitHub
parent 76ad29ae11
commit 40e7d72e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,7 +573,7 @@ class Client:
)
if temp_file_path:
final_file_path = os.path.join(directory, file_name)
final_file_path = re.sub("\\\\", "/", os.path.join(directory, file_name))
os.makedirs(directory, exist_ok=True)
shutil.move(temp_file_path, final_file_path)
except Exception as e: