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

Function CheckedUnlink

tools/test.py:756–768  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

754
755
756def CheckedUnlink(name):
757 while True:
758 try:
759 os.unlink(name)
760 except OSError as e:
761 # On Windows unlink() fails if another process (typically a virus scanner
762 # or the indexing service) has the file open. Those processes keep a
763 # file open for a short time only, so yield and try again; it'll succeed.
764 if sys.platform == 'win32' and e.errno == errno.EACCES:
765 time.sleep(0)
766 continue
767 PrintError("os.unlink() " + str(e))
768 break
769
770def Execute(args, context, timeout=None, env=None, disable_core_files=False,
771 stdin=None, max_virtual_memory=None):

Callers 1

ExecuteFunction · 0.85

Calls 4

strFunction · 0.85
sleepMethod · 0.80
PrintErrorFunction · 0.70
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…