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

Method _strip_protocol

tests/fixtures/fsspec.py:70–74  ·  view source on GitHub ↗
(cls, path)

Source from the content-addressed store, hash-verified

68
69 @classmethod
70 def _strip_protocol(cls, path):
71 path = stringify_path(path)
72 if path.startswith("mock://"):
73 path = path[7:]
74 return path
75
76
77class TmpDirFileSystem(MockFileSystem):

Callers 15

mkdirMethod · 0.95
makedirsMethod · 0.95
rmdirMethod · 0.95
lsMethod · 0.95
infoMethod · 0.95
cp_fileMethod · 0.95
rm_fileMethod · 0.95
rmMethod · 0.95
_openMethod · 0.95
createdMethod · 0.95
modifiedMethod · 0.95
lsMethod · 0.45

Calls

no outgoing calls

Tested by 4

lsMethod · 0.36
lsMethod · 0.36
resolverFunction · 0.36