It would be really useful if Leaf supported functions like stat, readDir, walkDir, etc so that library functions expecting a whole filesystem (for example, Opine's send, which uses stat and is used internally by the serveStatic function to serve static files) will work.
I understand if this is out of the scope of Leaf, but since we are meant to use Leaf with the fs text file r/w functions it would be nice to have this too, esp since Leaf is a fake filesystem.
A really cool use-case for Leaf, IMO, is single-file web servers in the vein of redbean but which allow us to use TypeScript and Deno, and this feature would enable that.
It would be really useful if Leaf supported functions like
stat,readDir,walkDir, etc so that library functions expecting a whole filesystem (for example, Opine'ssend, which uses stat and is used internally by the serveStatic function to serve static files) will work.I understand if this is out of the scope of Leaf, but since we are meant to use Leaf with the fs text file r/w functions it would be nice to have this too, esp since Leaf is a fake filesystem.
A really cool use-case for Leaf, IMO, is single-file web servers in the vein of redbean but which allow us to use TypeScript and Deno, and this feature would enable that.