mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-05-23 05:46:08 +08:00
使用绝对路径
This commit is contained in:
parent
5ff92ea0c7
commit
15b408d390
BIN
fastapi_example/download/f4c92056-f401-3984-b754-1b2cd1f995b6
Normal file
BIN
fastapi_example/download/f4c92056-f401-3984-b754-1b2cd1f995b6
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
|
@ -9,6 +9,7 @@ def get_exec_dir():
|
|||
|
||||
def get_download_dir():
|
||||
user_dir = os.path.join(get_exec_dir(), 'download')
|
||||
user_dir = os.path.abspath(user_dir)
|
||||
if not os.path.isdir(user_dir):
|
||||
os.makedirs(user_dir)
|
||||
return user_dir
|
||||
|
|
Loading…
Reference in New Issue
Block a user