The point is that the resolved (ie, fs.realpath()'ed) file is the key in the module cache.
This discussion reminded me of an old issue, where nodejs coders tend to use fs.Stats.ino to avoid cycles in directory tree walkers. This doesn't work in Windows, breaking naively ported tools, eg: https://github.com/joyent/node/issues/2670 https://github.com/mozilla/doctorjs/issues/15 Until that is fixed, would fs.realPath offer a suitable workaround (if it is good enough for module caching, it should be good enough for directory tree walking)? And could this issue be mentioned prominently in the nodejs docs for fs.Stats, please? Claus -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
