This commit is contained in:
Fangrui Song 2018-02-01 23:35:34 -08:00
parent 57a4cf3265
commit 12e41c609e

View File

@ -215,7 +215,7 @@ static void GetFilesInFolderHelper(
if (file.name[0] != '.') {
if (file.is_dir) {
if (recursive) {
std::string child_dir = q.front().second + file.name + "/";
std::string child_dir = q.front().first + file.name + "/";
if (!IsSymLink(child_dir))
q.push(make_pair(file.path, child_dir));
}