Skip to content
Snippets Groups Projects
Commit 33eed6eb authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix fs::GetRecursiveSubPaths trying to get directory lists for files

parent 8621e6de
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,9 @@ void GetRecursiveSubPaths(std::string path, std::vector<std::string> &dst)
const DirListNode &n = content[i];
std::string fullpath = path + DIR_DELIM + n.name;
dst.push_back(fullpath);
GetRecursiveSubPaths(fullpath, dst);
if (n.dir) {
GetRecursiveSubPaths(fullpath, dst);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment