Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pathlib
- # Directorio actual:
- p = pathlib.Path('.')
- # Fecha modificación:
- print(p.stat().st_mtime)
- # Contenido del directorio:
- contenido = sorted(p.glob('*'))
- print (contenido)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement