LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git] / src / filesys.cpp
index 597643887c43a8365144461340a16357820c8a06..784715617d5de18b1e9dd52be12e3f1a1a05dfae 100644 (file)
@@ -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);
+               }
        }
 }