Skip to content

Commit

Permalink
CSM: Do not index files within hidden directories
Browse files Browse the repository at this point in the history
CSM would previously scan for files within .git or .svn directories, and also special files such as .gitignore
  • Loading branch information
SmallJoker committed Jul 17, 2021
1 parent f4d8cc0 commit 40bee27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/client.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 40bee27

Please sign in to comment.