[issue46024] Different behaviour with zipfile

2021-12-20 Thread flvn.dev
flvn.dev added the comment: The output of: ```python print(repr(path), repr(ZipPath(path))) ``` gives this in both versions: ``` PosixPath('logs/2020/2020101.zip') Path('logs/2020/2020101.zip', '') PosixPath('logs/2021/202110

[issue46024] Different behaviour with zipfile

2021-12-09 Thread flvn.dev
New submission from flvn.dev : Given the this directory structure: ``` logs ├── 2020 │ ├── 2020101.zip | ├── ... ├── 2021 │ ├── 2021101.zip | ├── ... ``` The following piece of code: ```python from pathlib import Path from zipfile import Path as ZipPath for item in Path("logs"