Harha - Portable Virtual Filesystems

I needed virtual filesystems for a project I’m working on. Since it’s very decoupled from the actual project I decided to put it in its own repo. I probably will be adding more VFS implementations on it and offer ability to export a fuse filesystem.

Feel free give it a spin and if you make useful VFSes I don’t mind having them upstream’d.

LLM disclosure: LLM was only used to produce the tests. Eventually I want to have crafted test suite that can test any VFS implementation.

Tests have now been rewritten.

18 Likes

Added LLM tag until I remove the LLM generated tests :slight_smile:

9 Likes

thank you for adding it even for something as small/secondary as that (tests are important but they are not core functionality)

The project is now updated to zig 0.16

2 Likes

Removed LLM generated tests. Removed seek, writev and readv from the vtable. Instead the interface now has seekable() method that returns File.Seekable that keeps track of the offset and calls the pwritev/preadv functions from the vtable. Also added statFile function to the vtable.

5 Likes