Skip to content

Commit 40bee27

Browse files
committedJul 17, 2021
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
1 parent f4d8cc0 commit 40bee27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/client/client.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ void Client::scanModSubfolder(const std::string &mod_name, const std::string &mo
210210
std::string full_path = mod_path + DIR_DELIM + mod_subpath;
211211
std::vector<fs::DirListNode> mod = fs::GetDirListing(full_path);
212212
for (const fs::DirListNode &j : mod) {
213+
if (j.name[0] == '.')
214+
continue;
215+
213216
if (j.dir) {
214217
scanModSubfolder(mod_name, mod_path, mod_subpath + j.name + DIR_DELIM);
215218
continue;

0 commit comments

Comments
 (0)
Please sign in to comment.