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

Method stat_file

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

Source from the content-addressed store, hash-verified

417 return {}
418
419 def stat_file(
420 self, path: str, info: MediaPipeline.SpiderInfo
421 ) -> Deferred[StatInfo]:
422 return deferred_from_coro(run_in_thread(self._stat_file, path))
423
424
425class FilesPipeline(MediaPipeline):

Callers 1

test_persistMethod · 0.95

Calls 2

deferred_from_coroFunction · 0.90
run_in_threadFunction · 0.90

Tested by 1

test_persistMethod · 0.76