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

Function try_rmdir_r

tools/install.py:44–54  ·  view source on GitHub ↗
(options, path)

Source from the content-addressed store, hash-verified

42 if e.errno != errno.EEXIST: raise
43
44def try_rmdir_r(options, path):
45 path = abspath(path)
46 while is_child_dir(path, options.install_path):
47 try:
48 os.rmdir(path)
49 except OSError as e:
50 if e.errno == errno.ENOTEMPTY: return
51 if e.errno == errno.ENOENT: return
52 if e.errno == errno.EEXIST and current_system == SYSTEM_AIX: return
53 raise
54 path = abspath(path, '..')
55
56def mkpaths(options, path, dest):
57 if dest.endswith('/') or dest.endswith('\\'):

Callers 1

try_removeFunction · 0.85

Calls 3

abspathFunction · 0.85
is_child_dirFunction · 0.85
rmdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…