W3cubDocs

/Godot 3.0

EditorFileSystem

Inherits: Node < Object

Category: Core

Brief Description

Resource filesystem, as the editor sees it.

Member Functions

String get_file_type ( String path ) const
EditorFileSystemDirectory get_filesystem ( )
EditorFileSystemDirectory get_filesystem_path ( String path )
float get_scanning_progress ( ) const
bool is_scanning ( ) const
void scan ( )
void scan_sources ( )
void update_file ( String path )

Signals

filesystem_changed ( )

Emitted if the filesystem changed.

resources_reimported ( PoolStringArray resources )

Remitted if a resource is reimported.

sources_changed ( bool exist )

Emitted if the source of any imported file changed.

Description

This object holds information of all resources in the filesystem, their types, etc.

Member Function Description

String get_file_type ( String path ) const

Get the type of the file, given the full path.

EditorFileSystemDirectory get_filesystem ( )

Get the root directory object.

EditorFileSystemDirectory get_filesystem_path ( String path )

Returns a view into the filesystem at path.

float get_scanning_progress ( ) const

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

bool is_scanning ( ) const

Return true of the filesystem is being scanned.

void scan ( )

Scan the filesystem for changes.

void scan_sources ( )

Check if the source of any imported resource changed.

void update_file ( String path )

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

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