MCPcopy
hub / github.com/huggingface/datasets / info

Method info

tests/fixtures/fsspec.py:38–42  ·  view source on GitHub ↗
(self, path, *args, **kwargs)

Source from the content-addressed store, hash-verified

36 return [name[len(self.local_root_dir) :] for name in out]
37
38 def info(self, path, *args, **kwargs):
39 path = posixpath.join(self.local_root_dir, self._strip_protocol(path))
40 out = dict(self._fs.info(path, *args, **kwargs))
41 out["name"] = out["name"][len(self.local_root_dir) :]
42 return out
43
44 def cp_file(self, path1, path2, *args, **kwargs):
45 path1 = posixpath.join(self.local_root_dir, self._strip_protocol(path1))

Callers

nothing calls this directly

Calls 1

_strip_protocolMethod · 0.95

Tested by

no test coverage detected