PyFilesystem 中 tar 文件系统的 URL 格式是什么?
What is the URL format for a tar filesystem in PyFilesystem?
是否有 TarFilesystem in PyFilesystem? I see other examples here, but not for TarFilesystem 的 URL 格式。
通过反复试验找到答案:
fs.open_fs('tar://~/tmp/testtar.tar.gz')
URL (~/tmp/testtar.tar.gz
) 的资源部分可以是包含文件扩展的 OS 路径。
是否有 TarFilesystem in PyFilesystem? I see other examples here, but not for TarFilesystem 的 URL 格式。
通过反复试验找到答案:
fs.open_fs('tar://~/tmp/testtar.tar.gz')
URL (~/tmp/testtar.tar.gz
) 的资源部分可以是包含文件扩展的 OS 路径。