Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python copy file create intermediate directories

os.makedirs(os.path.dirname(dest_fpath), exist_ok=True)
shutil.copy(src_fpath, dest_fpath)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #copy #file #create #intermediate #directories
ADD COMMENT
Topic
Name
7+7 =