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

Function OnRmError

tools/v8/node_common.py:50–53  ·  view source on GitHub ↗
(func, path, exec_info)

Source from the content-addressed store, hash-verified

48 if os.path.isdir(target):
49 print(">> Cleaning up %s" % target)
50 def OnRmError(func, path, exec_info):
51 # This might happen on Windows
52 os.chmod(path, stat.S_IWRITE)
53 os.unlink(path)
54 shutil.rmtree(target, onerror=OnRmError)

Callers

nothing calls this directly

Calls 2

chmodMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…