hiding files and folders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heiro
    New Member
    • Jul 2007
    • 56

    hiding files and folders

    Hi!
    Is their any ways of hiding files and folders using python?
  • Subsciber123
    New Member
    • Nov 2006
    • 87

    #2
    Yes. On windows:
    [CODE=python]import win32api,win32c on
    win32api.SetFil eAttributes(fna me, win32con.FILE_A TTRIBUTE_HIDDEN )
    [/CODE]
    On linux, just rename the file to start with a "."
    Last edited by Subsciber123; Apr 11 '08, 04:52 AM. Reason: some spaces were inserted into my post

    Comment

    Working...