DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+7 =
Submit