class_editorfilesystem.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the EditorFileSystem.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_EditorFileSystem:
  6. EditorFileSystem
  7. ================
  8. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Resource filesystem, as the editor sees it.
  13. Methods
  14. -------
  15. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`String<class_String>` | :ref:`get_file_type<class_EditorFileSystem_method_get_file_type>` **(** :ref:`String<class_String>` path **)** const |
  17. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_filesystem<class_EditorFileSystem_method_get_filesystem>` **(** **)** |
  19. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_filesystem_path<class_EditorFileSystem_method_get_filesystem_path>` **(** :ref:`String<class_String>` path **)** |
  21. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`get_scanning_progress<class_EditorFileSystem_method_get_scanning_progress>` **(** **)** const |
  23. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_scanning<class_EditorFileSystem_method_is_scanning>` **(** **)** const |
  25. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`scan<class_EditorFileSystem_method_scan>` **(** **)** |
  27. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`scan_sources<class_EditorFileSystem_method_scan_sources>` **(** **)** |
  29. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`update_file<class_EditorFileSystem_method_update_file>` **(** :ref:`String<class_String>` path **)** |
  31. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`update_script_classes<class_EditorFileSystem_method_update_script_classes>` **(** **)** |
  33. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  34. Signals
  35. -------
  36. .. _class_EditorFileSystem_signal_filesystem_changed:
  37. - **filesystem_changed** **(** **)**
  38. Emitted if the filesystem changed.
  39. ----
  40. .. _class_EditorFileSystem_signal_resources_reimported:
  41. - **resources_reimported** **(** :ref:`PoolStringArray<class_PoolStringArray>` resources **)**
  42. Remitted if a resource is reimported.
  43. ----
  44. .. _class_EditorFileSystem_signal_resources_reload:
  45. - **resources_reload** **(** :ref:`PoolStringArray<class_PoolStringArray>` resources **)**
  46. ----
  47. .. _class_EditorFileSystem_signal_sources_changed:
  48. - **sources_changed** **(** :ref:`bool<class_bool>` exist **)**
  49. Emitted if the source of any imported file changed.
  50. Description
  51. -----------
  52. This object holds information of all resources in the filesystem, their types, etc.
  53. Method Descriptions
  54. -------------------
  55. .. _class_EditorFileSystem_method_get_file_type:
  56. - :ref:`String<class_String>` **get_file_type** **(** :ref:`String<class_String>` path **)** const
  57. Get the type of the file, given the full path.
  58. ----
  59. .. _class_EditorFileSystem_method_get_filesystem:
  60. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_filesystem** **(** **)**
  61. Get the root directory object.
  62. ----
  63. .. _class_EditorFileSystem_method_get_filesystem_path:
  64. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_filesystem_path** **(** :ref:`String<class_String>` path **)**
  65. Returns a view into the filesystem at ``path``.
  66. ----
  67. .. _class_EditorFileSystem_method_get_scanning_progress:
  68. - :ref:`float<class_float>` **get_scanning_progress** **(** **)** const
  69. Returns the scan progress for 0 to 1 if the FS is being scanned.
  70. ----
  71. .. _class_EditorFileSystem_method_is_scanning:
  72. - :ref:`bool<class_bool>` **is_scanning** **(** **)** const
  73. Returns ``true`` of the filesystem is being scanned.
  74. ----
  75. .. _class_EditorFileSystem_method_scan:
  76. - void **scan** **(** **)**
  77. Scan the filesystem for changes.
  78. ----
  79. .. _class_EditorFileSystem_method_scan_sources:
  80. - void **scan_sources** **(** **)**
  81. Check if the source of any imported resource changed.
  82. ----
  83. .. _class_EditorFileSystem_method_update_file:
  84. - void **update_file** **(** :ref:`String<class_String>` path **)**
  85. Update a file information. Call this if an external program (not Godot) modified the file.
  86. ----
  87. .. _class_EditorFileSystem_method_update_script_classes:
  88. - void **update_script_classes** **(** **)**