mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
Make paths good looking
This commit is contained in:
parent
76ad29ae11
commit
40e7d72e87
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ class Client:
|
||||||
)
|
)
|
||||||
|
|
||||||
if temp_file_path:
|
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)
|
os.makedirs(directory, exist_ok=True)
|
||||||
shutil.move(temp_file_path, final_file_path)
|
shutil.move(temp_file_path, final_file_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue