EditorFileSystemDirectory
Hereda: Object
Un directorio para el sistema de archivos de recursos.
Descripción
Una variación más generalizada y de bajo nivel del concepto de directorio.
Métodos
find_dir_index(name: String) const |
|
find_file_index(name: String) const |
|
get_file_count() const |
|
get_file_import_is_valid(idx: int) const |
|
get_file_path(idx: int) const |
|
get_file_script_class_extends(idx: int) const |
|
get_file_script_class_name(idx: int) const |
|
get_file_type(idx: int) const |
|
get_name() |
|
get_path() const |
|
get_subdir(idx: int) |
|
get_subdir_count() const |
Descripciones de Métodos
int find_dir_index(name: String) const 🔗
Returns the index of the directory with name name or -1 if not found.
int find_file_index(name: String) const 🔗
Returns the index of the file with name name or -1 if not found.
String get_file(idx: int) const 🔗
Returns the name of the file at index idx.
Devuelve el número de archivos en este directorio.
bool get_file_import_is_valid(idx: int) const 🔗
Returns true if the file at index idx imported properly.
String get_file_path(idx: int) const 🔗
Devuelve la ruta al archivo en el índice idx.
String get_file_script_class_extends(idx: int) 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_name(idx: int) 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.
StringName get_file_type(idx: int) 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".
Devuelve el nombre de este directorio.
EditorFileSystemDirectory get_parent() 🔗
Devuelve el directorio principal de este directorio o null si se llama a un directorio en res:// o user://.
Devuelve la ruta de este directorio.
EditorFileSystemDirectory get_subdir(idx: int) 🔗
Devuelve el subdirectorio en el índice idx.
int get_subdir_count() const 🔗
Devuelve el número de subdirectorios en este directorio.