s3fs
s3fs copied to clipboard
Error globbing on S3FS
I'm getting an error when globbing on S3:
This looks ok:
>>> list(s3fs.glob('/dfparks/'))
[GlobMatch(path='/dfparks/', info=<dir 'dfparks'>)]
But when I add a glob to the path:
>>> list(s3fs.glob('/dfparks/*'))
# I get the following error message (tracebacks removed):
botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
During handling of the above exception, another exception occurred:
fs.errors.ResourceNotFound: resource '/archive' not found
/archive
happens to be the first folder in the bucket I'm targeting here.
Listing that directory does work:
>>> s3fs.listdir('/archive')
[<file_list_omitted_but_correctly_displayed>]