Skip to content

Commit

Permalink
Create uploads folder if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ArondenOuden committed Sep 24, 2024
1 parent bb91dd8 commit c00c95d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
import secrets
import datetime

if (not os.path.exists("./static/uploads")):
os.mkdir("./static/uploads")

# Load env file for variable
load_dotenv()

Expand Down

0 comments on commit c00c95d

Please sign in to comment.