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

Method mkdir

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

Source from the content-addressed store, hash-verified

16 self.local_root_dir = Path(local_root_dir).resolve().as_posix() + "/"
17
18 def mkdir(self, path, *args, **kwargs):
19 path = posixpath.join(self.local_root_dir, self._strip_protocol(path))
20 return self._fs.mkdir(path, *args, **kwargs)
21
22 def makedirs(self, path, *args, **kwargs):
23 path = posixpath.join(self.local_root_dir, self._strip_protocol(path))

Calls 1

_strip_protocolMethod · 0.95