Return to Snippet

Revision: 42411
at March 4, 2011 15:03 by eliluminado


Initial Code
def hide(file):
    import os
    if not os.path.exists(file):
        return
    archive = os.path.basename(file)
    if archive[0] == '.':
        return 1
    else:
        directorio = os.path.dirname(file)
        newfile = directorio+'/''.'+archive
        os.rename(file, newfile)

Initial URL
http://www.codigopython.com.ar/?p=152

Initial Description
Simple script to hide files on GNU / Linux
Sencillo script para ocultar archivos en GNU/Linux

Initial Title
Hiding files in GNU/Linux

Initial Tags

                                

Initial Language
Python