Created
January 25, 2018 11:59
-
-
Save Fhernd/acd7dd0d82b679e1f7240488723c81b3 to your computer and use it in GitHub Desktop.
Mover (renombrar) archivos en Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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