/ Published in: Python
Analyzing the state of hidden files - Analizando el estado de archivos ocultos
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def check(file): import os if not os.path.exists(file): return "File does not exist" archive = os.path.basename(file) if archive[0] == '.': return archive + " Is hidden" else: return archive + " Is not hidden"
URL: http://wiki.codigopython.com.ar/pyhide:analizando-el-estado-de-los-archivos