mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix fs::GetRecursiveSubPaths trying to get directory lists for files
This commit is contained in:
parent
8621e6de5d
commit
33eed6eb84
@ -377,8 +377,10 @@ void GetRecursiveSubPaths(std::string path, std::vector<std::string> &dst)
|
|||||||
const DirListNode &n = content[i];
|
const DirListNode &n = content[i];
|
||||||
std::string fullpath = path + DIR_DELIM + n.name;
|
std::string fullpath = path + DIR_DELIM + n.name;
|
||||||
dst.push_back(fullpath);
|
dst.push_back(fullpath);
|
||||||
|
if (n.dir) {
|
||||||
GetRecursiveSubPaths(fullpath, dst);
|
GetRecursiveSubPaths(fullpath, dst);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeletePaths(const std::vector<std::string> &paths)
|
bool DeletePaths(const std::vector<std::string> &paths)
|
||||||
|
Loading…
Reference in New Issue
Block a user