Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created January 25, 2018 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/acd7dd0d82b679e1f7240488723c81b3 to your computer and use it in GitHub Desktop.
Save Fhernd/acd7dd0d82b679e1f7240488723c81b3 to your computer and use it in GitHub Desktop.
Mover (renombrar) archivos en Python.
import shutil
import os
# Método shutil.move():
shutil.move('archivo.csv', 'dir', copy_function = copy)
# Método os.rename():
os.rename('archivo.txt', 'dir')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment