Skip to content

Error globbing on S3FS #55

Description

@davidparks21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions