pythonpyfilesystem

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


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


Solution

  • 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.