2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 21:18:53 +08:00
<class name= "EditorFileSystemDirectory" inherits= "Object" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-13 04:42:36 +08:00
<brief_description >
2018-09-13 09:38:39 +08:00
A directory for the resource filesystem.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2017-12-07 02:56:15 +08:00
A more generalized, low-level variation of the directory concept.
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "find_dir_index" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "name" type= "String" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the index of the directory with name [param name] or [code]-1[/code] if not found.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "find_file_index" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "name" type= "String" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the index of the file with name [param name] or [code]-1[/code] if not found.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_file" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the name of the file at index [param idx].
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_file_count" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2017-12-07 02:56:15 +08:00
Returns the number of files in this directory.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_file_import_is_valid" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns [code]true[/code] if the file at index [param idx] imported properly.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_file_path" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the path to the file at index [param idx].
2017-09-13 04:42:36 +08:00
</description>
</method>
2018-07-26 17:56:21 +08:00
<method name= "get_file_script_class_extends" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2018-07-26 17:56:21 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the base class of the script class defined in the file at index [param idx]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
2018-07-26 17:56:21 +08:00
</description>
</method>
<method name= "get_file_script_class_name" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2018-07-26 17:56:21 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the name of the script class defined in the file at index [param idx]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
2018-07-26 17:56:21 +08:00
</description>
</method>
2017-09-13 04:42:36 +08:00
<method name= "get_file_type" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "StringName" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the resource type of the file at index [param idx]. 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-13 04:42:36 +08:00
</description>
</method>
<method name= "get_name" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2017-09-13 04:42:36 +08:00
<description >
2017-12-07 02:56:15 +08:00
Returns the name of this directory.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_parent" >
2021-07-30 21:28:05 +08:00
<return type= "EditorFileSystemDirectory" />
2017-09-13 04:42:36 +08:00
<description >
2019-06-22 07:04:47 +08:00
Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_path" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2017-09-13 04:42:36 +08:00
<description >
2017-12-07 02:56:15 +08:00
Returns the path to this directory.
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_subdir" >
2021-07-30 21:28:05 +08:00
<return type= "EditorFileSystemDirectory" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "idx" type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2022-08-13 00:07:53 +08:00
Returns the subdirectory at index [param idx].
2017-09-13 04:42:36 +08:00
</description>
</method>
<method name= "get_subdir_count" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2017-09-13 04:42:36 +08:00
<description >
2017-12-07 02:56:15 +08:00
Returns the number of subdirectories in this directory.
2017-09-13 04:42:36 +08:00
</description>
</method>
</methods>
</class>