MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _destinsrc

Function _destinsrc

tools/python-3.11.9-amd64/Lib/shutil.py:877–884  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

875 return real_dst
876
877def _destinsrc(src, dst):
878 src = os.path.abspath(src)
879 dst = os.path.abspath(dst)
880 if not src.endswith(os.path.sep):
881 src += os.path.sep
882 if not dst.endswith(os.path.sep):
883 dst += os.path.sep
884 return dst.startswith(src)
885
886def _is_immutable(src):
887 st = _stat(src)

Callers 1

moveFunction · 0.85

Calls 2

endswithMethod · 0.80
startswithMethod · 0.80

Tested by

no test coverage detected