(self, path, hint=None)
| 207 | |
| 208 | class 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 | |
| 220 | class FileMissingError(DvcException): |