git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4428 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-06-18 08:09:48 +00:00
parent a1b41089df
commit ce7ab8d904

View file

@ -1272,9 +1272,11 @@ static NSFileManager* defaultManager = nil;
if (S_IFLNK == (S_IFMT & statbuf.st_mode)) if (S_IFLNK == (S_IFMT & statbuf.st_mode))
break; break;
} }
// Follow links - check for directory else
{
if (!stat(cpath, &statbuf)) if (!stat(cpath, &statbuf))
break; break;
}
if (S_IFDIR == (S_IFMT & statbuf.st_mode)) if (S_IFDIR == (S_IFMT & statbuf.st_mode))
{ {
[self recurseIntoDirectory: currentFilePath [self recurseIntoDirectory: currentFilePath