Created
July 15, 2018 16:59
-
-
Save Fhernd/e783a898b77fd9e0dd892fcb0db4edc3 to your computer and use it in GitHub Desktop.
Listar el contenido de un directorio. OrtizOL.
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 os | |
nombre_archivos = [nombre for nombre in os.listdir('C:\\Windows') | |
if os.path.isfile(os.path.join('C:\\Windows', nombre))] | |
for nombre_archivo in nombre_archivos: | |
print(nombre_archivo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment