Ken Takata wrote: > When passing a symlink to a directory, getftype() returns "file" on Windows. > I think it should return "dir" as same as a junction. (Returning "link" > might cause trouble, because many people don't care about symlinks on > Windows.) > This is caused by a bug of VC runtime which was fixed by VC2015. VC2013 or > earlier and MinGW have this bug. (I don't know about other old compilers > like BCC.) > Attached patch fixes the problem. > > Note: Creating a symlink on Windows needs admin rights, so we cannot write > tests for this.
Thanks, I'll include it. -- The goal of science is to build better mousetraps. The goal of nature is to build better mice. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
