import os
path = "C:/Users/myuser/secrets/"
# If the directory doesn't exist...
if not os.path.exists(path):
# create it!
os.makedirs(path)
Create a directory using the Operating System module if the directory doesn't already exist.
1 Response
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.