Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created January 27, 2018 13:08
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/a7ce45845348aebb5b7d2131182de790 to your computer and use it in GitHub Desktop.
Save Fhernd/a7ce45845348aebb5b7d2131182de790 to your computer and use it in GitHub Desktop.
Inspeccionar directorios con Python.
import pathlib
# Directorio actual:
p = pathlib.Path('.')
# Fecha modificación:
print(p.stat().st_mtime)
# Contenido del directorio:
contenido = sorted(p.glob('*'))
print (contenido)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment