Provide a getter for the project data directory.

This commit is contained in:
ne0fhyk 2021-09-10 08:32:29 -07:00
parent 729461b2a4
commit 69f890ff11
18 changed files with 67 additions and 34 deletions

View file

@ -233,8 +233,9 @@ void FindInFiles::_scan_dir(String path, PackedStringArray &out_folders) {
break;
}
// Ignore special dirs (such as .git and .import)
if (file == "." || file == ".." || file.begins_with(".")) {
// Ignore special dirs (such as .git and project data directory)
String project_data_dir_name = ProjectSettings::get_singleton()->get_project_data_dir_name();
if (file.begins_with(".") || file == project_data_dir_name) {
continue;
}
if (dir->current_is_hidden()) {