Comments (4)
I think so? I don't know that I have enough experience with S3 to be sure. What are your thoughts?
from s3fs.
I will think about this for the evening. I did a little trial and error and am not really happy with the various combinations.
There are additional complexities, such as 'bucket/dir' and 'bucket/dir/' both being valid keys with or without data, with or without content at 'bucket/dir/stuff'.
from s3fs.
Let me step back and describe a simpler ls
that more closely reflects the workings of S3 (which has no real directories, only paths that happen to contain/
). What if we go back to a flat structure, allowing arbitrary filenames?
ls('') -> list of buckets
ls('mybucket') -> all keys in bucket, or notfound if bucket inaccessible
ls('mybucket/myfile') -> one exact match or notfound
info('mybucket/myfile') == ls('mybucket/myfile', detail=True)
mkdir('bucket') -> creates bucket
mkdir('bucket/path') -> notimplemented, or no-op (choice)
walk("") -> all keys in all buckets accessed so far
walk(path) -> all keys that startwith path
glob(pattern) -> normal match, the only one here where '/' has significance within buckets
In short, distributed.s3 would use walk or glob, not ls in this scheme.
from s3fs.
This seems like a straightforward approach that is easy to understand, implement, and convey to users.
I can see wanting to change it at some point in the future to impose a more traditional directory structure. But I can also imagine not wanting to change it, depending on how people use S3. Regardless there are probably higher priority things.
from s3fs.
Related Issues (20)
- Change introduced in "Try anon=True if no credentials are supplied or found" broke connection to private S3 compatible storage with custom AioSession and AioDeferredRefreshableCredentials. HOT 6
- s3fs rm fails silently HOT 1
- Error handling in _get_file HOT 2
- Add transfer configuration to support concurrent downloading HOT 1
- It is not possible to use synchronous and asynchronous calls together HOT 3
- Confused about using s3fs asynchronously HOT 7
- Failed to check IAM role name HOT 2
- Access Denied when IAM policy give access (Read/Write/Listing) to only a prefix area HOT 14
- difficult to perform delete_object request instead of delete_objects using S3FileSystem HOT 7
- S3fs doesn't check again if file exists HOT 4
- Inconsistent recursive `put` behavior when running an identical command twice successively HOT 1
- open_async file is closed on arrival HOT 1
- set_session does not seem to be thread / jobs safe HOT 4
- Random XAmzContentSHA256Mismatch Errors HOT 6
- Access denied when providing an authentication token associated with a set of permission policies to S3FileSystem HOT 3
- calling flush on s3fs fails HOT 2
- s3fs 2024.3.0 fails reading glob patterns through pandas HOT 12
- Question: is awscrt useful ? HOT 2
- Errors when installing s3fs on Sagemaker Studio HOT 1
- Why isn't Pathlib supported yet? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3fs.