nodebox-runtime icon indicating copy to clipboard operation
nodebox-runtime copied to clipboard

Symlinks cannot be read/detected by current fs APIs

Open mmmulani opened this issue 1 year ago • 0 comments

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.

mmmulani avatar Jun 17 '24 20:06 mmmulani