28cd33e actually changed the behaviour of GetFilesInFolderHelper.
This commit is contained in:
Riatre Foo 2018-02-03 02:51:14 +08:00 committed by Fangrui Song
parent 27c4222ef1
commit b145243a64

View File

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