Answers for "shutil.move"

0

shutil move file

#all the same
import os
import shutil

os.rename("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
os.replace("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
shutil.move("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
Posted by: Guest on September-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language