Class EditorFileSystemDirectory
A directory for the resource filesystem.
- Inheritance
-
EditorFileSystemDirectory
Remarks
A more generalized, low-level variation of the directory concept.
Methods
find_dir_index(String)
Qualifiers: const
Returns the index of the directory with name name or -1 if not found.
int find_dir_index(String name)
Parameters
nameString
find_file_index(String)
Qualifiers: const
Returns the index of the file with name name or -1 if not found.
int find_file_index(String name)
Parameters
nameString
get_file(int)
Qualifiers: const
Returns the name of the file at index idx.
String get_file(int idx)
Parameters
idxint
get_file_count
Qualifiers: const
Returns the number of files in this directory.
int get_file_count
get_file_import_is_valid(int)
Qualifiers: const
Returns true if the file at index idx imported properly.
bool get_file_import_is_valid(int idx)
Parameters
idxint
get_file_path(int)
Qualifiers: const
Returns the path to the file at index idx.
String get_file_path(int idx)
Parameters
idxint
get_file_script_class_extends(int)
Qualifiers: const
Returns the base class of the script class defined in the file at index idx. If the file doesn't define a script class using the class_name syntax, this will return an empty string.
String get_file_script_class_extends(int idx)
Parameters
idxint
get_file_script_class_name(int)
Qualifiers: const
Returns the name of the script class defined in the file at index idx. If the file doesn't define a script class using the class_name syntax, this will return an empty string.
String get_file_script_class_name(int idx)
Parameters
idxint
get_file_type(int)
Qualifiers: const
Returns the resource type of the file at index idx. This returns a string such as "Resource" or "GDScript", not a file extension such as ".gd".
StringName get_file_type(int idx)
Parameters
idxint
get_name
Returns the name of this directory.
String get_name
get_parent
Returns the parent directory for this directory or null if called on a directory at res:// or user://.
EditorFileSystemDirectory get_parent
get_path
Qualifiers: const
Returns the path to this directory.
String get_path
get_subdir(int)
Returns the subdirectory at index idx.
EditorFileSystemDirectory get_subdir(int idx)
Parameters
idxint
get_subdir_count
Qualifiers: const
Returns the number of subdirectories in this directory.
int get_subdir_count