_d"ddlZdZedZy)Nc:tjdk7rdS|S)NWindowscy)N)argskwargss zwindows_only..s)platformsystem)funcs r windows_onlyrsI%++ Kr c4ddl}td|jjj}|j j |j jf|_|j j|_ d}|||}|s|jy)z Set the hidden attribute on a file or directory. From http://stackoverflow.com/questions/19622133/ `path` must be text. rNzctypes.wintypes) ctypes __import__windllkernel32SetFileAttributesWwintypesLPWSTRDWORDargtypesBOOLrestypeWinError)pathrSetFileAttributesFILE_ATTRIBUTE_HIDDENrets r hide_filer" s ! ..AA!'!7!79N9N!N & 4 4  D"7 8C oo r )r rr"rr r r#s!   r