MCPcopy
hub / github.com/scrapy/scrapy / __init__

Method __init__

scrapy/pipelines/files.py:105–113  ·  view source on GitHub ↗
(self, basedir: str | PathLike[str])

Source from the content-addressed store, hash-verified

103
104class FSFilesStore:
105 def __init__(self, basedir: str | PathLike[str]):
106 basedir = _to_string(basedir)
107 if "://" in basedir:
108 basedir = basedir.split("://", 1)[1]
109 self.basedir: str = basedir
110 self._mkdir(Path(self.basedir))
111 self.created_directories: defaultdict[MediaPipeline.SpiderInfo, set[str]] = (
112 defaultdict(set)
113 )
114
115 def persist_file(
116 self,

Callers 1

__init__Method · 0.45

Calls 2

_mkdirMethod · 0.95
_to_stringFunction · 0.85

Tested by

no test coverage detected