mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Provide a getter for the project data directory.
This commit is contained in:
parent
729461b2a4
commit
69f890ff11
18 changed files with 67 additions and 34 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue