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