MCPcopy Index your code
hub / github.com/nodejs/node / is_child_dir

Function is_child_dir

tools/install.py:20–23  ·  view source on GitHub ↗
(child, parent)

Source from the content-addressed store, hash-verified

18 return os.path.abspath(path)
19
20def is_child_dir(child, parent):
21 p = os.path.abspath(parent)
22 c = os.path.abspath(child)
23 return c.startswith(p) and c != p
24
25def try_unlink(path):
26 try:

Callers 1

try_rmdir_rFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…