mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: fix uploads empty dir
This commit is contained in:
parent
86645fa81a
commit
8d5f61102b
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ async def upload_video(video_file, activity_id):
|
||||||
|
|
||||||
if not os.path.exists("content/uploads/video"):
|
if not os.path.exists("content/uploads/video"):
|
||||||
# create folder
|
# create folder
|
||||||
os.mkdir("content/uploads/video")
|
os.makedirs("content/uploads/video")
|
||||||
|
|
||||||
# create folder
|
# create folder
|
||||||
os.mkdir(f"content/uploads/video/{activity_id}")
|
os.mkdir(f"content/uploads/video/{activity_id}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue