EditorFileSystem

Resource filesystem, as the editor sees it.

This object holds information of all resources in the filesystem, their types, etc. Note: This class shouldn't be instantiated directly. Instead, access the singleton using EditorInterface.getResourceFilesystem.

Members

Aliases

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

Functions

getFileType
String getFileType(String path)

Returns the resource type of the file, given the full path. This returns a string such as "Resource" or "GDScript", not a file extension such as ".gd".

getFilesystem
EditorFileSystemDirectory getFilesystem()

Gets the root directory object.

getFilesystemPath
EditorFileSystemDirectory getFilesystemPath(String path)

Returns a view into the filesystem at path.

getScanningProgress
double getScanningProgress()

Returns the scan progress for 0 to 1 if the FS is being scanned.

isScanning
bool isScanning()

Returns true of the filesystem is being scanned.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(EditorFileSystem other)
opEquals
bool opEquals(typeof(null) n)
scan
void scan()

Scan the filesystem for changes.

scanSources
void scanSources()

Check if the source of any imported resource changed.

toHash
size_t toHash()
updateFile
void updateFile(String path)

Update a file information. Call this if an external program (not Godot) modified the file.

updateScriptClasses
void updateScriptClasses()

Scans the script files and updates the list of custom class names.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorFileSystem _new()

Construct a new instance of EditorFileSystem. Note: use memnew!EditorFileSystem 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