Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bhperry committed Feb 27, 2024
1 parent a397947 commit 8deb199
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions saturnfs/client/saturnfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,13 +1257,9 @@ async def _cp_file(
if self._is_local(proto1) and self._is_saturnfs(proto2):
if blocksize < settings.S3_MIN_PART_SIZE:
blocksize = settings.S3_MIN_PART_SIZE
return self.sfs.put_file(
path1, path2, block_size=blocksize, **kwargs
)
return self.sfs.put_file(path1, path2, block_size=blocksize, **kwargs)
elif self._is_saturnfs(proto1) and self._is_local(proto2):
return self.sfs.get_file(
path1, path2, block_size=blocksize, **kwargs
)
return self.sfs.get_file(path1, path2, block_size=blocksize, **kwargs)

return await super()._cp_file(url, url2, blocksize, **kwargs)

Expand Down

0 comments on commit 8deb199

Please sign in to comment.