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

Method __init__

dvc/exceptions.py:209–217  ·  view source on GitHub ↗
(self, path, hint=None)

Source from the content-addressed store, hash-verified

207
208class FileExistsLocallyError(FileExistsError, DvcException):
209 def __init__(self, path, hint=None):
210 import os.path
211
212 self.path = path
213 hint = "" if hint is None else f". {hint}"
214 path_typ = "directory" if os.path.isdir(path) else "file"
215 msg = f"The {path_typ} '{path}' already exists locally{hint}"
216 super().__init__(msg)
217 self.errno = errno.EEXIST
218
219
220class FileMissingError(DvcException):

Callers

nothing calls this directly

Calls 2

isdirMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected