Answers for "python move file to different directory"

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 "python move file to different directory"

Python Answers by Framework

Browse Popular Code Answers by Language