Browse Source

Fix incorrect descriptions for EditorFileSystem's `get_file_type()`

(cherry picked from commit 1942e0c1171dbd5a00d323114106cf4714608d18)
Hugo Locurcio 4 years ago
parent
commit
f77b228b2c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      doc/classes/EditorFileSystem.xml
  2. 1 1
      doc/classes/EditorFileSystemDirectory.xml

+ 1 - 1
doc/classes/EditorFileSystem.xml

@@ -14,7 +14,7 @@
 			<return type="String" />
 			<argument index="0" name="path" type="String" />
 			<description>
-				Gets the type of the file, given the full path.
+				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].
 			</description>
 		</method>
 		<method name="get_filesystem">

+ 1 - 1
doc/classes/EditorFileSystemDirectory.xml

@@ -68,7 +68,7 @@
 			<return type="String" />
 			<argument index="0" name="idx" type="int" />
 			<description>
-				Returns the file extension of the file at index [code]idx[/code].
+				Returns the resource type of the file at index [code]idx[/code]. This returns a string such as [code]"Resource"[/code] or [code]"GDScript"[/code], [i]not[/i] a file extension such as [code]".gd"[/code].
 			</description>
 		</method>
 		<method name="get_name">