AFAIK, Node.js returns and use the long name. Indeed, I don't know how to retrieve the short name using node ;-)
Other comments? Angel "Java" Lopez @ajlopez On Wed, Aug 20, 2014 at 2:39 AM, Joran Dirk Greef <[email protected]> wrote: > I am working on file synchronization and would like to know how Node.js > receives file names from Windows when calling fs.stat or fs.readdir? > > Does Node.js always return the 8.3 file name equivalent of a long file > name on Windows? Or does this depend on the version of Windows in use? Will > Node.js sometimes return the long file name? > > For instance, one could use Node.js to write out a file on Windows with a > long file name. Then trying to check for its existence later by calling > fs.readdir on the parent directory might perhaps return an 8.3 file name in > the results without the long file name. Would this be possible? > > Is there anyway to get both the 8.3 file name and long file name using > Node.js? > > See here for more detail: http://support.microsoft.com/kb/142982 > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/b8afa9b6-4d03-48ab-8c0d-4ded8ad4d37f%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/b8afa9b6-4d03-48ab-8c0d-4ded8ad4d37f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAMs%2BDqLR-e-OY5QWkUwyB0mL5njzhpT0Xkn2EpNPqQYRLsZ_ew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
