Advertisement
Fhernd

estado-directorio.py

Jan 27th, 2018
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import pathlib
  2.  
  3. # Directorio actual:
  4. p = pathlib.Path('.')
  5.  
  6. # Fecha modificación:
  7. print(p.stat().st_mtime)
  8.  
  9. # Contenido del directorio:
  10. contenido = sorted(p.glob('*'))
  11.  
  12. print (contenido)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement