mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
CSM: Do not index files within hidden directories
CSM would previously scan for files within .git or .svn directories, and also special files such as .gitignore
This commit is contained in:
parent
f4d8cc0f0b
commit
40bee27e56
@ -210,6 +210,9 @@ void Client::scanModSubfolder(const std::string &mod_name, const std::string &mo
|
||||
std::string full_path = mod_path + DIR_DELIM + mod_subpath;
|
||||
std::vector<fs::DirListNode> mod = fs::GetDirListing(full_path);
|
||||
for (const fs::DirListNode &j : mod) {
|
||||
if (j.name[0] == '.')
|
||||
continue;
|
||||
|
||||
if (j.dir) {
|
||||
scanModSubfolder(mod_name, mod_path, mod_subpath + j.name + DIR_DELIM);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user