Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created January 27, 2018 13:25
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/e3706d7c2fc63661c7ac9f937edcd995 to your computer and use it in GitHub Desktop.
Save Fhernd/e3706d7c2fc63661c7ac9f937edcd995 to your computer and use it in GitHub Desktop.
Explorar el contenido de un directorio en Python.
import pathlib
directorio_actual = pathlib.Path('.')
for elemento in directorio_actual.iterdir():
print(elemento)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment