Indeed.  This is an issue with fs.stat on Windows.  If the only effect
is that exists() is a little weird, then it's not very high priority.

The issue is probably that we call _makeLong on windows paths, which
resolves them.  Otherwise, paths longer than 256 chars cause issues.
(I haven't investigated it though, so it might be a different thing
entirely.)

This may eventually be a WONTFIX, since the only effect seems to be
this path.exists weirdness.  To test for directory-ness, use stat
directly.

But, just to capture it: https://github.com/joyent/node/issues/3374


On Tue, Jun 5, 2012 at 2:23 AM, Hsu Ping Feng <[email protected]> wrote:
> me too. maybe an issue in windows?
>
>
> fillano
>
> 2012/6/5 Massimo Melina <[email protected]>
>>
>> boys, i hope you don't take it as a challenge, i just want to report
>> facts.
>> Here's a capture from my Windows' console.
>> Apparently we have an inconsistency between platforms (and ponies).
>>
>> C:\TEMP>mkdir a
>> C:\TEMP>touch x
>> C:\TEMP>node --version
>> v0.6.18
>> C:\TEMP>node
>> > require('path').existsSync('x/.')
>> true
>> > require('path').existsSync('a/.')
>> true
>> >
>>
>>
>>
>> --Massimo
>>
>> --
>> 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
>
>
>
>
> --
> AUFKLÄRUNG ist der Ausgang des Menschen aus seiner selbstverschuldeten
> Unmündigkeit. Unmündigkeit ist das Unvermögen, sich seines Verstandes ohne
> Leitung eines anderen zu bedienen. Selbstverschuldet ist diese Unmündigkeit,
> wenn die Ursache derselben nicht am Mangel des Verstandes, sondern der
> Entschließung und des Mutes liegt, sich seiner ohne Leitung eines andern zu
> bedienen. Sapere aude! Habe Mut, dich deines eigenen Verstandes zu bedienen!
> ist also der Wahlspruch der Aufklärung.
>
> --
> 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

Reply via email to