MCPcopy
hub / github.com/scrapy/scrapy / stat_file

Method stat_file

scrapy/pipelines/files.py:196–200  ·  view source on GitHub ↗
(
        self, path: str, info: MediaPipeline.SpiderInfo
    )

Source from the content-addressed store, hash-verified

194 return {"checksum": checksum, "last_modified": modified_stamp}
195
196 def stat_file(
197 self, path: str, info: MediaPipeline.SpiderInfo
198 ) -> Deferred[StatInfo]:
199
200 return self._get_boto_key(path).addCallback(self._onsuccess)
201
202 def _get_boto_key(self, path: str) -> Deferred[dict[str, Any]]:
203 key_name = f"{self.prefix}{path}"

Callers 1

test_statMethod · 0.95

Calls 1

_get_boto_keyMethod · 0.95

Tested by 1

test_statMethod · 0.76