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

Function is_writeable

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

Source from the content-addressed store, hash-verified

85
86
87def is_writeable(path):
88 # type: (str) -> bool
89 return bool(os.stat(path).st_mode & 0o222)
90
91
92def is_executable(path):

Calls

no outgoing calls

Tested by

no test coverage detected