Open
Description
Hi
this is more a proposal of increment than a issue.
I am working on a project where I have to access different buckets from the same code.
In a case like this it can be a little annoying the need to build an S3FS instance for every bucket:
myfs1 = fs.open_fs('s3://bucket1') f1 = myfs1.open('/folder1/file1') myfs2 = fs.open_fs('s3://bucket2') f2 = myfs2.open('/folder2/file2') myfs3 = fs.open_fs('s3://bucket3') ...
It would be nice the possibility to set up the file system with an empty default bucket, treating the first folder in the path as bucket name.
myfs = fs.open_fs('s3://') f1 = myfs.open('/bucket1/folder1/file1') f2 = myfs.open('/bucket2/folder2/file2')
I can provide a PR for this
Metadata
Metadata
Assignees
Labels
No labels