I heard the other day that it's possible to stream directories in Node. Was wondering which system call that is on Linux (so we can call it from Rust), so decided to dig in! "I wonder how to stream director. Let's check out Node bindings for that!"https://github.com/mafintosh/fs-directory-stream/blob/master/binding.cc#L49 …
"Neat! - So I'm seeing this method called 'scandir'. It doesn't have a namespace or import or anything, but if I recall C doesn't have a module system. Maybe that's the thing we're looking for? Let's google it!" http://man7.org/linux/man-pages/man3/scandir.3.html …
-
-
[the end] So scandir(3) is a thing! - it doesn't appear that the Nix package provides bindings for it yet, so that'smight be something cool to explore in the future!
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.