Skip to content

Commit 6a1e9bb

Browse files
authored
Cat info (#1029)
* Fix CI * Use _info for concurrent cat_file
1 parent 969a4ac commit 6a1e9bb

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎s3fs/core.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,15 +1308,7 @@ async def _call_and_read():
13081308
and (max_concurrency or self.max_concurrency) > 1
13091309
):
13101310
chunksize = chunksize or self.default_block_size
1311-
resp = await self._call_s3(
1312-
"get_object",
1313-
Bucket=bucket,
1314-
Key=key,
1315-
**version_id_kw(version_id or vers),
1316-
**self.req_kw,
1317-
)
1318-
content_length = resp.get("ContentLength", None)
1319-
resp["Body"].close()
1311+
content_length = await self._size(path)
13201312

13211313
if content_length and content_length > chunksize:
13221314
return await self._cat_file_concurrent(

0 commit comments

Comments
 (0)