You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S3FS isn't aware of bucket-to-bucket transfers. So it will essentially do a download/upload.
It should be possible to detect where a bucket-to-bucket transfer would be possible. To be honest, I didn't even know that was possible. Will look in to that...
Any guidance on the change that would need to be made? Currently, it looks like copy is doing the right thing, but it's not really clear to me what happens when the src_path is an S3FS object from another bucket. Is there a way to get the bucket name from the src_path without causing problems or inconsistencies with the API?
Activity
willmcgugan commentedon Feb 21, 2018
S3FSisn't aware of bucket-to-bucket transfers. So it will essentially do a download/upload.It should be possible to detect where a bucket-to-bucket transfer would be possible. To be honest, I didn't even know that was possible. Will look in to that...
geoffjukes commentedon Feb 22, 2018
@willmcgugan I didn't either, until recently, It's actually pretty simple:
where
srcandtgtare Boto3 Bucket instances (with thier appropriate connections).http://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.copy
Thanks for looking into it!
ELind77 commentedon Apr 30, 2020
Any progress on this?
Any guidance on the change that would need to be made? Currently, it looks like
copyis doing the right thing, but it's not really clear to me what happens when thesrc_pathis anS3FSobject from another bucket. Is there a way to get the bucket name from the src_path without causing problems or inconsistencies with the API?Context:
s3fs/fs_s3fs/_s3fs.py
Line 790 in 7f95af6