Skip to content

Better support for flat namespaces #21

Description

@barneygale

Some file formats and backends, like .tar files, Git, or Google Cloud Storage, store objects in a flat namespace rather than a tree of directory/file entries. These systems:

  • Do not require directory entries (e.g. .tar), and may not support them (e.g. Git, GCS)
  • Natively support enumeration of all files (perhaps under a certain prefix)
  • Require us to filter the list of all objects in order to implement iterdir()

We could provide a version of PathBase that adds an abstract itertree() method and implements iterdir(), glob() and rglob() by immediately calling itertree() and filtering results.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions