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

Function _destinsrc

Lib/shutil.py:942–949  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

940 return real_dst
941
942def _destinsrc(src, dst):
943 src = os.path.abspath(src)
944 dst = os.path.abspath(dst)
945 if not src.endswith(os.path.sep):
946 src += os.path.sep
947 if not dst.endswith(os.path.sep):
948 dst += os.path.sep
949 return dst.startswith(src)
950
951def _is_immutable(src):
952 st = _stat(src)

Callers 1

moveFunction · 0.85

Calls 3

abspathMethod · 0.45
endswithMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…