diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-10 11:05:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 11:05:54 +0100 |
commit | ed51c55625cc8d3c598a32d2d178be3464951d21 (patch) | |
tree | b3bf18a2490b54a7487a2dc2c3dd0a8a830a66b0 | |
parent | bcb201c60aba58add4b1a9bfa3289f3ea7477ccb (diff) | |
parent | aeff87686859f5b6d9fde42c2e3cb12fcc2f4adc (diff) |
Merge pull request #36071 from RandomShaper/imvu/ignore_hidden_find
Ignore hidden files and directories in find in files
-rw-r--r-- | editor/find_in_files.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp index 4ab90ad3e4..b24a5c38f2 100644 --- a/editor/find_in_files.cpp +++ b/editor/find_in_files.cpp @@ -235,9 +235,11 @@ void FindInFiles::_scan_dir(String path, PoolStringArray &out_folders) { if (file == "") break; - // Ignore special dirs and hidden dirs (such as .git and .import) + // Ignore special dirs (such as .git and .import) if (file == "." || file == ".." || file.begins_with(".")) continue; + if (dir->current_is_hidden()) + continue; if (dir->current_is_dir()) out_folders.append(file); |