From 40bee27e5603a2ed1aff3646fa62661aef55c08a Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 17 Jul 2021 16:44:06 +0200 Subject: [PATCH] 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 --- src/client/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/client.cpp b/src/client/client.cpp index 00ae8f6b8..17661c242 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -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 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;