Don't output "file not found" messages in recursive searches

svn path=/trunk/; revision=28078
This commit is contained in:
Thomas Bluemel 2007-08-01 18:55:47 +00:00
parent 604b0f6c03
commit e6e690ba9a

View file

@ -875,7 +875,8 @@ PrintSummary(LPTSTR szPath,
/* Here we check if we didn't find anything */
if (!(ulFiles + ulDirs))
{
error_file_not_found();
if (!lpFlags->bRecursive || (TotalSummary && lpFlags->bRecursive))
error_file_not_found();
return 1;
}