a „oeÐã@s ddlZdd„Zedd„ƒZdS)éNcCst ¡dkrdd„S|S)NZWindowsc_sdS)N©)ÚargsÚkwargsrrú;C:\Program Files\Certbot\pkgs\setuptools\windows_support.pyÚózwindows_only..)ÚplatformÚsystem)ÚfuncrrrÚ windows_onlys r cCsTddl}tdƒ|jjj}|jj|jjf|_|jj |_ d}|||ƒ}|sP|  ¡‚dS)zŒ Set the hidden attribute on a file or directory. From https://stackoverflow.com/questions/19622133/ `path` must be text. rNzctypes.wintypesé) ÚctypesÚ __import__ZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORDÚargtypesZBOOLZrestypeZWinError)Úpathr ZSetFileAttributesÚFILE_ATTRIBUTE_HIDDENÚretrrrÚ hide_file s    r)rr rrrrrÚs