-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using readbytes(path), get ResourceNotFound #65
Comments
after further debugging, I believe I found the issue in _s3fs.py:438
at this point, the _dir_key is the path minus the filename, i.e.
which makes it look like the full path couldn't be found. When I replaced the line above with path it returned my file correctly. Also, let me know if the way that I'm passing in the path may be what's causing this. |
Did you create the file with S3FS? Please see limitations in the docs. |
I did see that, and that was my other thought, but all files have been created either through the S3 GUI or through AWS APIs/SDKs. Interestingly, I just tested a totally new directory by creating it with your interface
and then reading it with the method readbytes(), and it worked. Most of our S3 contents were created through the Java S3 SDK, so I'm wondering if it doesn't create the directory object. Anyway, I'll look into that. Thanks for the info! |
I got caught out by the need for objects that simulate directories too. This issue was very helpful, I feel the limitations description isn't very clear. I would like to be able to write code that reads from S3 without needing objects to simulate directories. It seems that for at least some operations (such as
the operation works with
would be nice to be able to do this with the |
where the
path
is the full path (minus the bucket) to the file, i.e. a/b/c.txtI've made sure that my credentials in ~/.aws/credentials are correct, but I'm not sure if there's something else I'm doing wrong, or if readbytes is supported.
The text was updated successfully, but these errors were encountered: