EditorFileSystemDirectory

A directory for the resource filesystem.

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

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

findDirIndex
long findDirIndex(String name)

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

findFileIndex
long findFileIndex(String name)

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

getFile
String getFile(long idx)

Returns the name of the file at index idx.

getFileCount
long getFileCount()

Returns the number of files in this directory.

getFileImportIsValid
bool getFileImportIsValid(long idx)

Returns true if the file at index idx imported properly.

getFilePath
String getFilePath(long idx)

Returns the path to the file at index idx.

getFileScriptClassExtends
String getFileScriptClassExtends(long 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.

getFileScriptClassName
String getFileScriptClassName(long idx)

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.

getFileType
String getFileType(long idx)

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

getName
String getName()

Returns the name of this directory.

getParent
EditorFileSystemDirectory getParent()

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

getPath
String getPath()

Returns the path to this directory.

getSubdir
EditorFileSystemDirectory getSubdir(long idx)

Returns the subdirectory at index idx.

getSubdirCount
long getSubdirCount()

Returns the number of subdirectories in this directory.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(EditorFileSystemDirectory other)
opEquals
bool opEquals(typeof(null) n)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorFileSystemDirectory _new()

Construct a new instance of EditorFileSystemDirectory. Note: use memnew!EditorFileSystemDirectory instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta