Display junction points

svn path=/trunk/; revision=27643
This commit is contained in:
Thomas Bluemel 2007-07-14 07:16:05 +00:00
parent 4aa8a9db0f
commit a0637bc3ac

View file

@ -1206,7 +1206,13 @@ DirPrintNewList(LPWIN32_FIND_DATA ptrFiles[], /* [IN]Files' Info */
for (i = 0;i < dwCount;i++)
{
/* Calculate size */
if (ptrFiles[i]->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
if (ptrFiles[i]->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
{
/* Junction */
iSizeFormat = -14;
_tcscpy(szSize, _T("<JUNCTION>"));
}
else if (ptrFiles[i]->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
/* Directory */
iSizeFormat = -14;