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

Class FileExistsLocallyError

dvc/exceptions.py:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
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 2

resolve_outputFunction · 0.90
_download_studioMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected