Viewing File: /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/windows_support.cpython-35.pyc



©‘\Êã@s:ddlZddlZdd„Zedd„ƒZdS)éNcCs tjƒdkrdd„S|S)NZWindowsc_sdS)N©)ÚargsÚkwargsrrú/windows_support.pyÚ<lambda>szwindows_only.<locals>.<lambda>)ÚplatformÚsystem)ÚfuncrrrÚwindows_onlys
r
cCsntdƒtjjj}tjjtjjf|_tjj	|_
d}|||ƒ}|sjtjƒ‚dS)z‹
    Set the hidden attribute on a file or directory.

    From http://stackoverflow.com/questions/19622133/

    `path` must be text.
    zctypes.wintypeséN)Ú
__import__ÚctypesZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORDZargtypesZBOOLZrestypeZWinError)ÚpathZSetFileAttributesÚFILE_ATTRIBUTE_HIDDENZretrrrÚ	hide_files	
r)rr
r
rrrrrÚ<module>s
Back to Directory File Manager