EditorFileSystem.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorFileSystem" inherits="Node" version="3.4">
  3. <brief_description>
  4. Resource filesystem, as the editor sees it.
  5. </brief_description>
  6. <description>
  7. This object holds information of all resources in the filesystem, their types, etc.
  8. [b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_resource_filesystem].
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="get_file_type" qualifiers="const">
  14. <return type="String" />
  15. <argument index="0" name="path" type="String" />
  16. <description>
  17. 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].
  18. </description>
  19. </method>
  20. <method name="get_filesystem">
  21. <return type="EditorFileSystemDirectory" />
  22. <description>
  23. Gets the root directory object.
  24. </description>
  25. </method>
  26. <method name="get_filesystem_path">
  27. <return type="EditorFileSystemDirectory" />
  28. <argument index="0" name="path" type="String" />
  29. <description>
  30. Returns a view into the filesystem at [code]path[/code].
  31. </description>
  32. </method>
  33. <method name="get_scanning_progress" qualifiers="const">
  34. <return type="float" />
  35. <description>
  36. Returns the scan progress for 0 to 1 if the FS is being scanned.
  37. </description>
  38. </method>
  39. <method name="is_scanning" qualifiers="const">
  40. <return type="bool" />
  41. <description>
  42. Returns [code]true[/code] of the filesystem is being scanned.
  43. </description>
  44. </method>
  45. <method name="scan">
  46. <return type="void" />
  47. <description>
  48. Scan the filesystem for changes.
  49. </description>
  50. </method>
  51. <method name="scan_sources">
  52. <return type="void" />
  53. <description>
  54. Check if the source of any imported resource changed.
  55. </description>
  56. </method>
  57. <method name="update_file">
  58. <return type="void" />
  59. <argument index="0" name="path" type="String" />
  60. <description>
  61. Update a file information. Call this if an external program (not Godot) modified the file.
  62. </description>
  63. </method>
  64. <method name="update_script_classes">
  65. <return type="void" />
  66. <description>
  67. Scans the script files and updates the list of custom class names.
  68. </description>
  69. </method>
  70. </methods>
  71. <signals>
  72. <signal name="filesystem_changed">
  73. <description>
  74. Emitted if the filesystem changed.
  75. </description>
  76. </signal>
  77. <signal name="resources_reimported">
  78. <argument index="0" name="resources" type="PoolStringArray" />
  79. <description>
  80. Emitted if a resource is reimported.
  81. </description>
  82. </signal>
  83. <signal name="resources_reload">
  84. <argument index="0" name="resources" type="PoolStringArray" />
  85. <description>
  86. Emitted if at least one resource is reloaded when the filesystem is scanned.
  87. </description>
  88. </signal>
  89. <signal name="sources_changed">
  90. <argument index="0" name="exist" type="bool" />
  91. <description>
  92. Emitted if the source of any imported file changed.
  93. </description>
  94. </signal>
  95. </signals>
  96. <constants>
  97. </constants>
  98. </class>