Return to Snippet

Revision: 45532
at May 3, 2011 14:03 by eliluminado


Initial Code
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"

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

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

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

Initial Tags


Initial Language
Python