[issue45649] Add tarinfo.Path

2022-01-01 Thread Barney Gale
Barney Gale added the comment: If you're only aiming for Traversable compatibility, sure. The original bug description asks for something that's pathlib-compatible and similar to zipfile.Path, which goes beyond the Traversable interface in attempting to emulate pathlib.Path. The pathlib.Pat

[issue45649] Add tarinfo.Path

2022-01-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'd recommend not to block on issue24132. It's not obvious to me that subclassing would be valuable. It depends on how it's implemented, but in my experience, zipfile.Path doesn't and cannot implement the full interface of pathlib.Path. Instead zipfile.Path

[issue45649] Add tarinfo.Path

2022-01-01 Thread Barney Gale
Barney Gale added the comment: It's possible to do, but will be a little slow due to the nature of tar files. They're a big linked list of files, so you need to do a bunch of reads/seeks from the start to the end to enumerate all files. I'd ask that we try to get issue24132 solved first. Tha

[issue45649] Add tarinfo.Path

2021-10-28 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue45649] Add tarinfo.Path

2021-10-28 Thread Filipe Laíns
Filipe Laíns added the comment: That is good to know. This isn't very high on my priority list, but I will try to explore when I have some time. -- ___ Python tracker ___

[issue45649] Add tarinfo.Path

2021-10-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: I vaguely recall exploring this concept and finding that tarfiles don’t supply the requisite interface because they’re not random access. I’m only 10% confident in that recollection, so worth exploring. -- ___ Pyt

[issue45649] Add tarinfo.Path

2021-10-28 Thread Filipe Laíns
New submission from Filipe Laíns : It would be helpful to have a pathlib-compatible object in tarfile, similarly to zipfile.Path. -- components: Library (Lib) messages: 405194 nosy: FFY00, jaraco priority: normal severity: normal status: open title: Add tarinfo.Path type: enhancement ve