You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Provide a getter for the project data directory.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user