rust-vfs icon indicating copy to clipboard operation
rust-vfs copied to clipboard

Idea: support tar or zip files

Open sffc opened this issue 4 years ago • 3 comments

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.

sffc avatar Jan 15 '21 22:01 sffc

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 .

coderedart avatar Aug 12 '21 06:08 coderedart

I would prefer tar rather tha zip, because filenames in tar are usually utf8, while in zip they could be various encodings.

Berrysoft avatar Jan 06 '23 17:01 Berrysoft

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:)

Berrysoft avatar Jan 08 '23 04:01 Berrysoft