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

Function try_remove

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

Source from the content-addressed store, hash-verified

73 return shutil.copy2(source_path, target_path)
74
75def try_remove(options, path, dest):
76 _source_path, target_path = mkpaths(options, path, dest)
77 if not options.silent:
78 print('removing %s' % target_path)
79 try_unlink(target_path)
80 try_rmdir_r(options, os.path.dirname(target_path))
81
82def install(options, paths, dest):
83 for path in paths:

Callers 1

uninstallFunction · 0.85

Calls 4

mkpathsFunction · 0.85
try_unlinkFunction · 0.85
try_rmdir_rFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…