Answers for "how to change file location of a file in python"

7

python move file

import os, shutil
#move picture.png from /some/dir/ to /another/dir/Pictures/
shutil.move('/some/dir/picture.png', '/another/dir/Pictures/')
Posted by: Guest on July-06-2020

Code answers related to "how to change file location of a file in python"

Python Answers by Framework

Browse Popular Code Answers by Language