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

Method cp_file

tests/fixtures/fsspec.py:44–47  ·  view source on GitHub ↗
(self, path1, path2, *args, **kwargs)

Source from the content-addressed store, hash-verified

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))
46 path2 = posixpath.join(self.local_root_dir, self._strip_protocol(path2))
47 return self._fs.cp_file(path1, path2, *args, **kwargs)
48
49 def rm_file(self, path, *args, **kwargs):
50 path = posixpath.join(self.local_root_dir, self._strip_protocol(path))

Callers

nothing calls this directly

Calls 1

_strip_protocolMethod · 0.95

Tested by

no test coverage detected