What is the URL format for a tar filesystem in PyFilesystem?

64 Views Asked by At

Is there a URL format for the TarFilesystem in PyFilesystem? I see other examples here, but not for TarFilesystem.

1

There are 1 best solutions below

0
On BEST ANSWER

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.