MCPcopy
hub / github.com/scrapy/scrapy / _get_store

Method _get_store

scrapy/pipelines/files.py:536–540  ·  view source on GitHub ↗
(self, uri: str)

Source from the content-addressed store, hash-verified

534 ftp_store.USE_ACTIVE_MODE = settings.getbool("FEED_STORAGE_FTP_ACTIVE")
535
536 def _get_store(self, uri: str) -> FilesStoreProtocol:
537 # to support win32 paths like: C:\\some\dir
538 scheme = "file" if Path(uri).is_absolute() else urlparse(uri).scheme
539 store_cls = self.STORE_SCHEMES[scheme]
540 return store_cls(uri)
541
542 def _onsuccess(
543 self,

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected