W3cubDocs

/Godot 3.0

EditorFileSystemDirectory

Inherits: Object

Category: Core

Brief Description

A diretory for the resource filesystem.

Member Functions

int find_dir_index ( String name ) const
int find_file_index ( String name ) const
String get_file ( int idx ) const
int get_file_count ( ) const
bool get_file_import_is_valid ( int idx ) const
String get_file_path ( int idx ) const
String get_file_type ( int idx ) const
String get_name ( )
EditorFileSystemDirectory get_parent ( )
String get_path ( ) const
EditorFileSystemDirectory get_subdir ( int idx )
int get_subdir_count ( ) const

Description

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

Member Function Description

int find_dir_index ( String name ) const

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

int find_file_index ( String name ) const

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

String get_file ( int idx ) const

Returns the name of the file at index idx.

int get_file_count ( ) const

Returns the number of files in this directory.

bool get_file_import_is_valid ( int idx ) const

Returns true if the file at index idx imported properly.

String get_file_path ( int idx ) const

Returns the path to the file at index idx.

String get_file_type ( int idx ) const

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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_editorfilesystemdirectory.html