Skip to content

.root incompatible with pathlib #95

Description

@barneygale

In pathlib, path.root gives you the path root, i.e. the middle element from os.path.splitroot(). This is either the empty string, a forward slash, a backward slash (Windows only), or two forward slashes (Posix only).

In zipp, path.root points to the archive via a name cache. Perhaps it could be renamed to something that doesn't conflict?

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