Skip to content

Path.iterdir() raises ValueError on non-directory; should raise NotADirectoryError #129

Closed

Description

@barneygale

For consistency with pathlib.Path.iterdir() and directory scanning functions in os, I propose that zipp.Path.iterdir() should raise NotADirectoryError when called on a non-directory. It presently raises ValueError

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