Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

shutil move overwrite

# If you specify the full path to the destination (not just the directory)
# then shutil.move will overwrite any existing file:
shutil.move(os.path.join(src, filename), os.path.join(dst, filename))
 
PREVIOUS NEXT
Tagged: #shutil #move #overwrite
ADD COMMENT
Topic
Name
6+5 =