Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 15, 2018 16: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/e783a898b77fd9e0dd892fcb0db4edc3 to your computer and use it in GitHub Desktop.
Save Fhernd/e783a898b77fd9e0dd892fcb0db4edc3 to your computer and use it in GitHub Desktop.
Listar el contenido de un directorio. OrtizOL.
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