You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Ah, ofc, writing won't work, I meant more of the reading functions, yes. I'll try and write a PR later today but I can't promise anything (I'm kinda busy since my college semester starts tomorrow).
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.
The text was updated successfully, but these errors were encountered: