mirror of
https://github.com/godotengine/godot.git
synced 2025-03-19 23:53:32 +08:00
Ignore hidden files and directories in find in files
(cherry picked from commit aeff87686859f5b6d9fde42c2e3cb12fcc2f4adc)
This commit is contained in:
parent
59b8f9b2da
commit
a8ae52e998
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user