-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.root incompatible with pathlib #95
Comments
Good question. It could be renamed, and probably should be renamed if the meaning of And in another sense, How is it that it conflicts? Is there a case for why |
The meaning of (This is different to tarballs, which can store paths with drives and roots)
They give completely different information. In pathlib, IMO |
In pathlib,
path.root
gives you the path root, i.e. the middle element fromos.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?The text was updated successfully, but these errors were encountered: