Answers for "python moving a file from one location to another python"

0

os.move file

import os
import shutil

os.rename("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")
os.replace("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
Posted by: Guest on August-24-2020

Code answers related to "python moving a file from one location to another python"

Python Answers by Framework

Browse Popular Code Answers by Language