From 33eed6eb84078b51c7ba24a774d7f56ec2bc951d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 23 Dec 2014 15:23:21 -0500 Subject: [PATCH] Fix fs::GetRecursiveSubPaths trying to get directory lists for files --- src/filesys.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filesys.cpp b/src/filesys.cpp index 597643887..784715617 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -377,7 +377,9 @@ void GetRecursiveSubPaths(std::string path, std::vector &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); + } } }