rust-vfs
rust-vfs copied to clipboard
Idea: support tar or zip files
It would be cool to write Rust code that could accept a &dyn vfs::filesystem::FileSystem
argument and then read data from a variety of file system formats. You already have AltrootFS
, but it would be nifty if there were other implementations like TarFS
or ZipFS
that read paths from a tar or zip file. This would enable library authors to write functions that could read from either a flat directory or from a tar/zip file directly.
just wanted to express interest in this. i am learning rust, and a lot of people send a resource like a set of images or xml files packed in a zip file. this support would be super cool, especially once zip
crate is finalizing its rewrite .
I would prefer tar rather tha zip, because filenames in tar are usually utf8, while in zip they could be various encodings.
I'm also working on a vfs-tar implementation: https://github.com/Berrysoft/vfs-tar . It is currently a readonly implementation.
If you are interested in this, any help would be appreciated:)