MCPcopy Index your code
hub / github.com/python/cpython / _is_immutable

Function _is_immutable

Lib/shutil.py:951–954  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

949 return dst.startswith(src)
950
951def _is_immutable(src):
952 st = _stat(src)
953 immutable_states = [stat.UF_IMMUTABLE, stat.SF_IMMUTABLE]
954 return hasattr(st, 'st_flags') and st.st_flags in immutable_states
955
956def _get_gid(name):
957 """Returns a gid, given a group name."""

Callers 1

moveFunction · 0.85

Calls 1

_statFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…