Skip to content

Commit

Permalink
Don't scan directory if it contains .xrignore file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 12, 2014
1 parent be10273 commit a175012
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xrCore/LocatorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@ bool CLocatorAPI::Recurse (const char* path)
{
string_path scanPath;
xr_strcpy(scanPath, sizeof(scanPath), path);
xr_strcat(scanPath, ".xrignore");
struct stat buffer;
if (!stat(scanPath, &buffer))
return true;
xr_strcpy(scanPath, sizeof(scanPath), path);
xr_strcat(scanPath, "*.*");
_finddata_t findData;
intptr_t handle = _findfirst(scanPath, &findData);
Expand Down

0 comments on commit a175012

Please sign in to comment.