How to move file from one directory to another in Python

1 Answer

0 votes
import os

os.rename('d:\\data.bin', 'd:\\test\\data.bin')
print("Move success")

'''
run:

Move success

'''

 



answered Aug 29, 2015 by avibootz

Related questions

1 answer 190 views
1 answer 220 views
2 answers 227 views
3 answers 282 views
3 answers 268 views
1 answer 262 views
3 answers 323 views
...