Skip to content

Commit a175012

Browse files
author
Pavel Kovalenko
committed
Don't scan directory if it contains .xrignore file.
1 parent be10273 commit a175012

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/xrCore/LocatorAPI.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,11 @@ bool CLocatorAPI::Recurse (const char* path)
551551
{
552552
string_path scanPath;
553553
xr_strcpy(scanPath, sizeof(scanPath), path);
554+
xr_strcat(scanPath, ".xrignore");
555+
struct stat buffer;
556+
if (!stat(scanPath, &buffer))
557+
return true;
558+
xr_strcpy(scanPath, sizeof(scanPath), path);
554559
xr_strcat(scanPath, "*.*");
555560
_finddata_t findData;
556561
intptr_t handle = _findfirst(scanPath, &findData);

0 commit comments

Comments
 (0)