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

Function try_symlink

tools/install.py:31–36  ·  view source on GitHub ↗
(options, source_path, link_path)

Source from the content-addressed store, hash-verified

29 if e.errno != errno.ENOENT: raise
30
31def try_symlink(options, source_path, link_path):
32 if not options.silent:
33 print('symlinking %s -> %s' % (source_path, link_path))
34 try_unlink(link_path)
35 try_mkdir_r(os.path.dirname(link_path))
36 os.symlink(source_path, link_path)
37
38def try_mkdir_r(path):
39 try:

Callers 3

package_filesFunction · 0.85
corepack_filesFunction · 0.85
filesFunction · 0.85

Calls 4

try_unlinkFunction · 0.85
try_mkdir_rFunction · 0.85
printFunction · 0.50
symlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…