MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / has_hidden_attribute

Function has_hidden_attribute

tools/file_packager.py:142–153  ·  view source on GitHub ↗

Win32 code to test whether the given file has the hidden property set.

(filepath)

Source from the content-addressed store, hash-verified

140
141
142def has_hidden_attribute(filepath):
143 """Win32 code to test whether the given file has the hidden property set."""
144 if sys.platform != 'win32':
145 return False
146
147 try:
148 attrs = ctypes.windll.kernel32.GetFileAttributesW(filepath)
149 assert attrs != -1
150 result = bool(attrs & 2)
151 except Exception:
152 result = False
153 return result
154
155
156def should_ignore(fullname):

Callers 1

should_ignoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected