Answers for "how to transfer a file to another directory 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 transfer a file to another directory in python"

Python Answers by Framework

Browse Popular Code Answers by Language