fix logic in GetFilesInFolderHelper from DFS-ification in 96f4ffc4b

This commit is contained in:
Joel Hock 2018-01-08 22:23:54 -05:00 committed by Jacob Dufault
parent 2494c24332
commit 9d64a76fec

View File

@ -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));
} }