EditorFileSystemDirectory
Inherits: Object A directory for the resource filesystem.
Description
A more generalized, low-level variation of the directory concept.
Methods
Method Descriptions
- int find_dir_index ( String name ) const
nameor-1if not found.
- int find_file_index ( String name ) const
nameor-1if not found.
- String get_file ( int idx ) const
idx.
- int get_file_count ( ) const Returns the number of files in this directory.
- bool get_file_import_is_valid ( int idx ) const
trueif the file at indexidximported properly.
- String get_file_path ( int idx ) const
idx.
- String get_file_script_class_extends ( int idx ) const
idx. If the file doesn’t define a script class using theclass_namesyntax, this will return an empty string.
- String get_file_script_class_name ( int idx ) const
idx. If the file doesn’t define a script class using theclass_namesyntax, this will return an empty string.
- String get_file_type ( int idx ) const
idx. This returns a string such as"Resource"or"GDScript", not a file extension such as".gd".
- String get_name ( ) Returns the name of this directory.
- EditorFileSystemDirectory get_parent ( )
nullif called on a directory atres://oruser://.
- String get_path ( ) const Returns the path to this directory.
- EditorFileSystemDirectory get_subdir ( int idx )
idx.
- int get_subdir_count ( ) const Returns the number of subdirectories in this directory.
