MCPcopy
hub / github.com/pex-tool/pex / is_executable

Function is_executable

tests/test_common.py:92–94  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

90
91
92def is_executable(path):
93 # type: (str) -> bool
94 return bool(os.stat(path).st_mode & 0o111)
95
96
97def test_perm_preserving_zipfile_extractall():

Calls

no outgoing calls

Tested by

no test coverage detected