nodebox-runtime
nodebox-runtime copied to clipboard
Symlinks cannot be read/detected by current fs APIs
After the filesystem is initalized by fs.init, the node_modules folder is arranged similar to pnpm with symbolic links. However, there is no actual way to find these symbolic links.
Currently fs.stat will follow the symbolic links (which matches the stat behaviour). Ideally, there would be an lstat API along with readlink, so you could determine which files are symbolic links, and also find determine their target.