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

Function mkpaths

tools/install.py:56–65  ·  view source on GitHub ↗
(options, path, dest)

Source from the content-addressed store, hash-verified

54 path = abspath(path, '..')
55
56def mkpaths(options, path, dest):
57 if dest.endswith('/') or dest.endswith('\\'):
58 target_path = abspath(options.install_path, dest, os.path.basename(path))
59 else:
60 target_path = abspath(options.install_path, dest)
61 if os.path.isabs(path):
62 source_path = path
63 else:
64 source_path = abspath(options.root_dir, path)
65 return source_path, target_path
66
67def try_copy(options, path, dest):
68 source_path, target_path = mkpaths(options, path, dest)

Callers 3

try_copyFunction · 0.85
try_removeFunction · 0.85
subdir_filesFunction · 0.85

Calls 1

abspathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…