Analyzing the state of hidden files - Analizando el estado de archivos ocultos


/ Published in: Python
Save to your folder(s)

Analyzing the state of hidden files - Analizando el estado de archivos ocultos


Copy this code and paste it in your HTML
  1. def check(file):
  2. import os
  3. if not os.path.exists(file):
  4. return "File does not exist"
  5. archive = os.path.basename(file)
  6. if archive[0] == '.':
  7. return archive + " Is hidden"
  8. else:
  9. return archive + " Is not hidden"

URL: http://wiki.codigopython.com.ar/pyhide:analizando-el-estado-de-los-archivos

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.