Inheritance #

Table of contents

EditorFileSystemDirectory #

is_instantiable, editor, not_builtin_classes

A directory for the resource filesystem.

A more generalized, low-level variation of the directory concept.

Members #

Methods #

const func find_dir_index(name: String) -> int#

Returns the index of the directory with name name or -1 if not found.

const func find_file_index(name: String) -> int#

Returns the index of the file with name name or -1 if not found.

const func get_file(idx: int) -> String#

Returns the name of the file at index idx.

const func get_file_count() -> int#

Returns the number of files in this directory.

const func get_file_import_is_valid(idx: int) -> bool#

Returns true if the file at index idx imported properly.

const func get_file_path(idx: int) -> String#

Returns the path to the file at index idx.

const func get_file_script_class_extends(idx: int) -> String#

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.

const func get_file_script_class_name(idx: int) -> 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.

const func get_file_type(idx: int) -> StringName#

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".

func get_name() -> String#

Returns the name of this directory.

func get_parent() -> EditorFileSystemDirectory#

Returns the parent directory for this directory or null if called on a directory at res:// or user://.

const func get_path() -> String#

Returns the path to this directory.

func get_subdir(idx: int) -> EditorFileSystemDirectory#

Returns the subdirectory at index idx.

const func get_subdir_count() -> int#

Returns the number of subdirectories in this directory.

Annotations #

Constants #

Constructors #

Enums #

Operators #

Signals #

Theme Items #

Tutorials #