Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('/home/directory/filename.jpg', 'rb') as file:
- newfile = open("/home/otherdirectory/newfile.jpg", 'wb')
- newfile.write(file.read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement