EditorFileSystem

Inherits: Node < Object

Sistema de archivos de recursos, como lo ve el editor.

Descripción

Este objeto contiene información de todos los recursos del sistema de archivos, sus tipos, etc.

Nota: Esta clase no debe ser instanciada directamente. En su lugar, accede al singleton usando EditorInterface.get_resource_filesystem.

Métodos

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 )

void

update_script_classes ( )

Señales

  • filesystem_changed ( )

Emitido si el sistema de archivos cambió.


Emitted if a resource is reimported.


Emitido si al menos un recurso se recarga cuando el sistema de archivos es escaneado.


  • sources_changed ( bool exist )

Emitido si la fuente de cualquier archivo importado cambia.

Descripciones de Métodos

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


Obtiene el objeto del directorio raíz.


Devuelve una vista en el sistema de archivos en path.


  • float get_scanning_progress ( ) const

Devuelve el progreso del escaneo de 0 a 1 si el FS está siendo escaneado.


  • bool is_scanning ( ) const

Devuelve true del sistema de archivos está siendo escaneado.


  • void scan ( )

Escanea el sistema de archivos en busca de cambios.


  • void scan_sources ( )

Compruebe si ha cambiado la fuente de algún recurso importado.


  • void update_file ( String path )

Actualizar la información de un archivo. Llámalo si un programa externo (no Godot) modificó el archivo.


  • void update_script_classes ( )

Escanea los archivos de script y actualiza la lista de nombres de clase personalizados.