Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Oct 20, 2024
1 parent aa18aa6 commit 32bfcbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,9 +1141,11 @@ async def _pipe_file(
size = len(data)
# 5 GB is the limit for an S3 PUT
if size < min(5 * 2**30, 2 * chunksize):
await self._call_s3(
out = await self._call_s3(
"put_object", Bucket=bucket, Key=key, Body=data, **kwargs
)
self.invalidate_cache(path)
return out
else:

mpu = await self._call_s3(
Expand Down Expand Up @@ -1177,7 +1179,7 @@ async def _pipe_file(
UploadId=mpu["UploadId"],
MultipartUpload={"Parts": parts},
)
self.invalidate_cache(path)
self.invalidate_cache(path)

async def _put_file(
self,
Expand Down

0 comments on commit 32bfcbb

Please sign in to comment.