mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 05:54:51 +00:00
Return the good looking absolute path instead of an ugly relative one #37
This commit is contained in:
parent
fa6af8695e
commit
569ab1696a
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ class Client:
|
|||
)
|
||||
|
||||
if temp_file_path:
|
||||
final_file_path = re.sub("\\\\", "/", os.path.join(directory, file_name))
|
||||
final_file_path = os.path.abspath(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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue