Advertisement
Fhernd

mover-archivos.py

Jan 25th, 2018
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import shutil
  2. import os
  3.  
  4. # Método shutil.move():
  5. shutil.move('archivo.csv', 'dir', copy_function = copy)
  6.  
  7. # Método os.rename():
  8. os.rename('archivo.txt', 'dir')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement