[CHANGE_BEHAVIOUR] Change Find in files behaviour : all the hidden directory won't be searched (for example : .svn).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@80 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2007-12-08 19:15:42 +00:00
parent e4e465b092
commit fd501da2b3

View File

@ -1016,7 +1016,11 @@ void Notepad_plus::getMatchedFileNames(const char *dir, const vector<string> & p
if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{ {
if (isRecursive) if (foundData.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)
{
// branles rien
}
else if (isRecursive)
{ {
if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, ".."))) if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, "..")))
{ {
@ -1039,10 +1043,13 @@ void Notepad_plus::getMatchedFileNames(const char *dir, const vector<string> & p
} }
while (::FindNextFile(hFile, &foundData)) while (::FindNextFile(hFile, &foundData))
{ {
if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{ {
if (isRecursive) if (foundData.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)
{
// branles rien
}
else if (isRecursive)
{ {
if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, ".."))) if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, "..")))
{ {