Is there a URL format for the TarFilesystem in PyFilesystem? I see other examples here, but not for TarFilesystem.
Asked
Active
Viewed 45 times
0
-
And what about the `tarfile` module ? https://docs.python.org/3/library/tarfile.html – s3n0 Mar 13 '19 at 00:19
-
In this case everything is PyFilesystem, it's a thin wrapper over things like `tarfile` and provides a consistent interface across many forms of file access (tar, os, s3, memory fs, etc). – David Parks Mar 13 '19 at 00:24
1 Answers
2
Found the answer through trial and error:
fs.open_fs('tar://~/tmp/testtar.tar.gz')
The resource part of the URL (~/tmp/testtar.tar.gz
) can be an OS path including file expansion.

David Parks
- 30,789
- 47
- 185
- 328