Hello, I think Massimo has a point here. If "/myfile" is a regular file, then pathname resolution to "/myfile/." should fails and exists should imho return false. Only in the case that "/myfile" is a directory should the call return true.
Regards, -Dhruv. On Jun 1, 12:00 pm, Mark Hahn <[email protected]> wrote: > You want `existsSync` to tell you if a path is a directory or a file. But > `existsSync` doesn't do that. You would need to make that a feature > request. > > > > > > > > On Fri, Jun 1, 2012 at 11:51 AM, Massimo Melina <[email protected]> wrote: > > clear enough, thank you! > > i consider it an unwanted side-effect of the normalization. > > > -- > > 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 -- 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
