You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zp2 is ZipPath('.../path/to/archive.zip', '').
This is because of reuse of a parent archive in the constructor.
Instead, I suggest to use a private parameter to ZipPath.__init__ to pass along a shared _zipfile, so that we do not need path for that. Furthermore, ZipFileExtra should use Path.open instead of io.open so that path instances of any kind (e.g. ZipPath) can be used.
The text was updated successfully, but these errors were encountered:
Context: I'm working on a universal Path implementation that allows me to work on paths like "/path/to/archive.zip/nested.zip/hello.txt" transparently.
Currently, it is impossible to access nested archives:
zp2
isZipPath('.../path/to/archive.zip', '')
.This is because of reuse of a parent archive in the constructor.
Instead, I suggest to use a private parameter to
ZipPath.__init__
to pass along a shared_zipfile
, so that we do not needpath
for that. Furthermore,ZipFileExtra
should usePath.open
instead ofio.open
so that path instances of any kind (e.g.ZipPath
) can be used.The text was updated successfully, but these errors were encountered: