2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-08-05 16:51:38 +00:00
<class name= "EditorFileSystem" inherits= "Node" version= "3.6" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
Resource filesystem, as the editor sees it.
</brief_description>
<description >
This object holds information of all resources in the filesystem, their types, etc.
2020-04-14 20:09:21 +00:00
[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_resource_filesystem].
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "get_file_type" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
<argument index= "0" name= "path" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2021-08-12 16:38:57 +00:00
Returns the resource type of the file, given the full path. This returns a string such as [code]"Resource"[/code] or [code]"GDScript"[/code], [i]not[/i] a file extension such as [code]".gd"[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_filesystem" >
2021-07-30 13:28:05 +00:00
<return type= "EditorFileSystemDirectory" />
2017-09-12 20:42:36 +00:00
<description >
2019-06-21 23:04:47 +00:00
Gets the root directory object.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_filesystem_path" >
2021-07-30 13:28:05 +00:00
<return type= "EditorFileSystemDirectory" />
<argument index= "0" name= "path" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-07 19:45:51 +00:00
Returns a view into the filesystem at [code]path[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_scanning_progress" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2019-05-24 02:15:43 +00:00
Returns the scan progress for 0 to 1 if the FS is being scanned.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "is_scanning" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2022-05-19 09:03:57 +00:00
Returns [code]true[/code] if the filesystem is being scanned.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "scan" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
Scan the filesystem for changes.
</description>
</method>
<method name= "scan_sources" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
Check if the source of any imported resource changed.
</description>
</method>
<method name= "update_file" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "path" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Update a file information. Call this if an external program (not Godot) modified the file.
</description>
</method>
2018-07-26 09:56:21 +00:00
<method name= "update_script_classes" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Scans the script files and updates the list of custom class names.
2018-07-26 09:56:21 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
</methods>
<signals >
<signal name= "filesystem_changed" >
<description >
Emitted if the filesystem changed.
</description>
</signal>
<signal name= "resources_reimported" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "resources" type= "PoolStringArray" />
2017-09-12 20:42:36 +00:00
<description >
2021-03-18 11:04:28 +00:00
Emitted if a resource is reimported.
2017-09-12 20:42:36 +00:00
</description>
</signal>
2018-11-23 00:06:24 +00:00
<signal name= "resources_reload" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "resources" type= "PoolStringArray" />
2018-11-23 00:06:24 +00:00
<description >
2020-07-18 15:17:00 +00:00
Emitted if at least one resource is reloaded when the filesystem is scanned.
2018-11-23 00:06:24 +00:00
</description>
</signal>
2017-09-12 20:42:36 +00:00
<signal name= "sources_changed" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "exist" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
Emitted if the source of any imported file changed.
</description>
</signal>
</signals>
<constants >
</constants>
</class>