Re: Transparently treating tar files and zip archives as directories

2019-01-06 Thread Skip Montanaro
> Pyfilesystem (https://pypi.org/project/fs/) does something like this - > it might be what you're after, Thanks, Paul. That would seem to check all my boxes and more. S -- https://mail.python.org/mailman/listinfo/python-list

Re: Transparently treating tar files and zip archives as directories

2019-01-06 Thread Paul Moore
Pyfilesystem (https://pypi.org/project/fs/) does something like this - it might be what you're after, Paul On Sun, 6 Jan 2019 at 22:32, Skip Montanaro wrote: > > I find it useful in some of the work I do to treat Zip archives as if > they were directories. I don't think it would be too difficult

Transparently treating tar files and zip archives as directories

2019-01-06 Thread Skip Montanaro
I find it useful in some of the work I do to treat Zip archives as if they were directories. I don't think it would be too difficult to make it pretty much transparent, so that you could execute something like: fileobj = magic_open("/path/to/some/archive.zip/some/internal/path/magic.txt") or equi