| 14 | |
| 15 | |
| 16 | class DataFileSystem(FileSystem): |
| 17 | protocol = "local" |
| 18 | |
| 19 | PARAM_CHECKSUM = "md5" |
| 20 | |
| 21 | def _prepare_credentials(self, **config): |
| 22 | return config |
| 23 | |
| 24 | @functools.cached_property |
| 25 | def fs(self) -> "_DataFileSystem": |
| 26 | from dvc_data.fs import DataFileSystem as _DataFileSystem |
| 27 | |
| 28 | return _DataFileSystem(**self.fs_args) |
| 29 | |
| 30 | def getcwd(self): |
| 31 | return self.fs.getcwd() |
| 32 | |
| 33 | def isdvc(self, path, **kwargs): |
| 34 | return self.fs.isdvc(path, **kwargs) |
| 35 | |
| 36 | def from_os_path(self, path): |
| 37 | if os.path.isabs(path): |
| 38 | path = os.path.splitdrive(path)[1] |
| 39 | |
| 40 | return as_posix(path) |
no outgoing calls