Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
77
class
TmpDirFileSystem(MockFileSystem):
Callers
15
mkdir
Method · 0.95
makedirs
Method · 0.95
rmdir
Method · 0.95
ls
Method · 0.95
info
Method · 0.95
cp_file
Method · 0.95
rm_file
Method · 0.95
rm
Method · 0.95
_open
Method · 0.95
created
Method · 0.95
modified
Method · 0.95
ls
Method · 0.45
Calls
no outgoing calls
Tested by
4
ls
Method · 0.36
ls
Method · 0.36
resolver
Function · 0.36
test_get_data_files_patterns
Function · 0.36