mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 16:09:40 +00:00
fix logic in GetFilesInFolderHelper from DFS-ification in 96f4ffc4b
This commit is contained in:
parent
2494c24332
commit
9d64a76fec
@ -167,7 +167,7 @@ static void GetFilesInFolderHelper(
|
|||||||
if (file.name[0] != '.') {
|
if (file.name[0] != '.') {
|
||||||
if (file.is_dir) {
|
if (file.is_dir) {
|
||||||
if (recursive) {
|
if (recursive) {
|
||||||
std::string child_dir = output_prefix + file.name + "/";
|
std::string child_dir = q.front().second + file.name + "/";
|
||||||
if (!IsSymLink(child_dir))
|
if (!IsSymLink(child_dir))
|
||||||
q.push(make_pair(file.path, child_dir));
|
q.push(make_pair(file.path, child_dir));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user