Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python create new folder if not exist
Starfire
Programming language:
Python
2021-08-05 04:32:49
0
Q:
python create new folder if not exist
blah
Code:
Python
2021-06-13 07:55:05
import os if not os.path.exists('my_folder'): os.makedirs('my_folder')
19
Tags
python
new
folder
create
Related
which folder python os
python make directory if not exists
python create file if doesbt exist
python check if path does not exist
python create file if not exists
python check if folder is empty
python check if folder exists
python how to see if file is directory
New to Communities?
Join the community