From b145243a647517867eff9b54ac60b34b4d7695a5 Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Sat, 3 Feb 2018 02:51:14 +0800 Subject: [PATCH] Fix #393 again. (#402) 28cd33e actually changed the behaviour of GetFilesInFolderHelper. --- src/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cc b/src/utils.cc index 83bffe3f..67f4e878 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -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 {