/ Published in: Python
URL: http://www.codigopython.com.ar/?p=152
Simple script to hide files on GNU / Linux Sencillo script para ocultar archivos en GNU/Linux
Expand |
Embed | Plain Text
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)
You need to login to post a comment.
