EditorFileSystemDirectory
Inherits: Object
A directory for the resource filesystem.
Description
A more generalized, low-level variation of the directory concept.
Methods
find_dir_index ( String name ) const | |
find_file_index ( String name ) const | |
get_file_count ( ) const | |
get_file_import_is_valid ( int idx ) const | |
get_file_path ( int idx ) const | |
get_file_script_class_extends ( int idx ) const | |
get_file_script_class_name ( int idx ) const | |
get_file_type ( int idx ) const | |
get_name ( ) | |
get_parent ( ) | |
get_path ( ) const | |
get_subdir ( int idx ) | |
get_subdir_count ( ) const |
Method Descriptions
Returns the index of the directory with name name
or -1
if not found.
Returns the index of the file with name name
or -1
if not found.
Returns the name of the file at index idx
.
- int get_file_count ( ) const
Returns the number of files in this directory.
Returns true
if the file at index idx
imported properly.
Returns the path to the file at index idx
.
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.
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.
Returns the file extension of the file at index idx
.
- String get_name ( )
Returns the name of this directory.
- EditorFileSystemDirectory get_parent ( )
Returns the parent directory for this directory or null
if called on a directory at res://
or user://
.
- String get_path ( ) const
Returns the path to this directory.
- EditorFileSystemDirectory get_subdir ( int idx )
Returns the subdirectory at index idx
.
- int get_subdir_count ( ) const
Returns the number of subdirectories in this directory.