MCPcopy
hub / github.com/treeverse/dvc / _unlink

Function _unlink

dvc/utils/fs.py:55–59  ·  view source on GitHub ↗
(path, onerror)

Source from the content-addressed store, hash-verified

53
54
55def _unlink(path, onerror):
56 try:
57 os.unlink(path)
58 except OSError:
59 onerror(os.unlink, path, sys.exc_info())
60
61
62def remove(path):

Callers 1

removeFunction · 0.85

Calls 2

unlinkMethod · 0.80
onerrorFunction · 0.50

Tested by

no test coverage detected