s3fs icon indicating copy to clipboard operation
s3fs copied to clipboard

Error globbing on S3FS

Open davidparks21 opened this issue 5 years ago • 0 comments

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>]

davidparks21 avatar Jul 26 '19 20:07 davidparks21