Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
Table of contents
-
const func find_dir_index(name: String) -> int -
const func find_file_index(name: String) -> int -
const func get_file(idx: int) -> String -
const func get_file_count() -> int -
const func get_file_import_is_valid(idx: int) -> bool -
const func get_file_path(idx: int) -> String -
const func get_file_script_class_extends(idx: int) -> String -
const func get_file_script_class_name(idx: int) -> String -
const func get_file_type(idx: int) -> StringName -
func get_name() -> String -
func get_parent() -> EditorFileSystemDirectory -
const func get_path() -> String -
func get_subdir(idx: int) -> EditorFileSystemDirectory -
const func get_subdir_count() -> int
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.