Skip to content

Commit

Permalink
Merge pull request #34 from zeux/scanopt-win
Browse files Browse the repository at this point in the history
Optimize project scanning on Windows
  • Loading branch information
zeux authored Jun 11, 2024
2 parents 88e27b1 + eb51755 commit 9867afd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ grepping (i.e. full-text searches using regular expressions) over a large set
of files. Searches use the database which is a compressed and indexed copy
of the source data, thus they are much faster compared to vanilla grep -R.

qgrep runs on Windows (Vista+, XP is not supported), Linux and MacOS X.

Basic setup
-----------

Expand Down
2 changes: 1 addition & 1 deletion src/fileutil_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static bool traverseDirectoryRec(const wchar_t* path, const char* relpath, const
std::wstring query = path + std::wstring(L"/*");

WIN32_FIND_DATAW data;
HANDLE h = FindFirstFileW(query.c_str(), &data);
HANDLE h = FindFirstFileExW(query.c_str(), FindExInfoBasic, &data, FindExSearchNameMatch, NULL, FIND_FIRST_EX_LARGE_FETCH);

if (h == INVALID_HANDLE_VALUE)
return false;
Expand Down

0 comments on commit 9867afd

Please sign in to comment.