Created
January 27, 2018 13:25
-
-
Save Fhernd/e3706d7c2fc63661c7ac9f937edcd995 to your computer and use it in GitHub Desktop.
Explorar el contenido de un directorio 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 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