MCPcopy
hub / github.com/scrapy/scrapy / _get_filesystem_path

Method _get_filesystem_path

scrapy/pipelines/files.py:141–143  ·  view source on GitHub ↗
(self, path: str | PathLike[str])

Source from the content-addressed store, hash-verified

139 return {"last_modified": last_modified, "checksum": checksum}
140
141 def _get_filesystem_path(self, path: str | PathLike[str]) -> Path:
142 path_comps = _to_string(path).split("/")
143 return Path(self.basedir, *path_comps)
144
145 def _mkdir(
146 self, dirname: Path, domain: MediaPipeline.SpiderInfo | None = None

Callers 3

persist_fileMethod · 0.95
stat_fileMethod · 0.95
test_fs_storeMethod · 0.80

Calls 1

_to_stringFunction · 0.85

Tested by 1

test_fs_storeMethod · 0.64