Skip to content
0.2.0-dev Download ZIP
106 lines ·3.9 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="EditorFileSystemDirectory" inherits="Object" api_type="editor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A directory for the resource filesystem.
5 </brief_description>
6 <description>
7 A more generalized, low-level variation of the directory concept.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="find_dir_index" qualifiers="const">
13 <return type="int" />
14 <param index="0" name="name" type="String" />
15 <description>
16 Returns the index of the directory with name [param name] or [code]-1[/code] if not found.
17 </description>
18 </method>
19 <method name="find_file_index" qualifiers="const">
20 <return type="int" />
21 <param index="0" name="name" type="String" />
22 <description>
23 Returns the index of the file with name [param name] or [code]-1[/code] if not found.
24 </description>
25 </method>
26 <method name="get_file" qualifiers="const">
27 <return type="String" />
28 <param index="0" name="idx" type="int" />
29 <description>
30 Returns the name of the file at index [param idx].
31 </description>
32 </method>
33 <method name="get_file_count" qualifiers="const">
34 <return type="int" />
35 <description>
36 Returns the number of files in this directory.
37 </description>
38 </method>
39 <method name="get_file_import_is_valid" qualifiers="const">
40 <return type="bool" />
41 <param index="0" name="idx" type="int" />
42 <description>
43 Returns [code]true[/code] if the file at index [param idx] imported properly.
44 </description>
45 </method>
46 <method name="get_file_path" qualifiers="const">
47 <return type="String" />
48 <param index="0" name="idx" type="int" />
49 <description>
50 Returns the path to the file at index [param idx].
51 </description>
52 </method>
53 <method name="get_file_script_class_extends" qualifiers="const">
54 <return type="String" />
55 <param index="0" name="idx" type="int" />
56 <description>
57 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.
58 </description>
59 </method>
60 <method name="get_file_script_class_name" qualifiers="const">
61 <return type="String" />
62 <param index="0" name="idx" type="int" />
63 <description>
64 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.
65 </description>
66 </method>
67 <method name="get_file_type" qualifiers="const">
68 <return type="StringName" />
69 <param index="0" name="idx" type="int" />
70 <description>
71 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].
72 </description>
73 </method>
74 <method name="get_name">
75 <return type="String" />
76 <description>
77 Returns the name of this directory.
78 </description>
79 </method>
80 <method name="get_parent">
81 <return type="EditorFileSystemDirectory" />
82 <description>
83 Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
84 </description>
85 </method>
86 <method name="get_path" qualifiers="const">
87 <return type="String" />
88 <description>
89 Returns the path to this directory.
90 </description>
91 </method>
92 <method name="get_subdir">
93 <return type="EditorFileSystemDirectory" />
94 <param index="0" name="idx" type="int" />
95 <description>
96 Returns the subdirectory at index [param idx].
97 </description>
98 </method>
99 <method name="get_subdir_count" qualifiers="const">
100 <return type="int" />
101 <description>
102 Returns the number of subdirectories in this directory.
103 </description>
104 </method>
105 </methods>
106</class>