mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fixed incorrect mask detection
This commit is contained in:
parent
784f644566
commit
3812c5ab0b
1 changed files with 3 additions and 3 deletions
|
@ -184,15 +184,15 @@ static bool traverseDirectoryRec(const std::string& path, const std::function<vo
|
|||
mode = st.st_mode;
|
||||
}
|
||||
|
||||
if (mode & S_IFDIR)
|
||||
if (mode == S_IFDIR)
|
||||
{
|
||||
traverseDirectoryRec(buf, callback);
|
||||
}
|
||||
else if (mode & S_IFREG)
|
||||
else if (mode == S_IFREG)
|
||||
{
|
||||
callback(buf);
|
||||
}
|
||||
else if (mode & S_IFLNK)
|
||||
else if (mode == S_IFLNK)
|
||||
{
|
||||
// Skip symbolic links to avoid handling cycles
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue