MCPcopy
hub / github.com/scrapy/scrapy / _get_boto_key

Method _get_boto_key

scrapy/pipelines/files.py:202–210  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

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}"
204 return deferred_from_coro(
205 run_in_thread(
206 self.s3_client.head_object, # type: ignore[attr-defined]
207 Bucket=self.bucket,
208 Key=key_name,
209 )
210 )
211
212 def persist_file(
213 self,

Callers 1

stat_fileMethod · 0.95

Calls 2

deferred_from_coroFunction · 0.90
run_in_threadFunction · 0.90

Tested by

no test coverage detected