class_editorfilesystem.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the EditorFileSystem.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_EditorFileSystem:
  5. EditorFileSystem
  6. ================
  7. **Inherits:** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Resource filesystem, as the editor sees it.
  12. Member Functions
  13. ----------------
  14. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`String<class_string>` | :ref:`get_file_type<class_EditorFileSystem_get_file_type>` **(** :ref:`String<class_string>` path **)** const |
  16. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` | :ref:`get_filesystem<class_EditorFileSystem_get_filesystem>` **(** **)** |
  18. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` | :ref:`get_filesystem_path<class_EditorFileSystem_get_filesystem_path>` **(** :ref:`String<class_string>` path **)** |
  20. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`get_scanning_progress<class_EditorFileSystem_get_scanning_progress>` **(** **)** const |
  22. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`is_scanning<class_EditorFileSystem_is_scanning>` **(** **)** const |
  24. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`scan<class_EditorFileSystem_scan>` **(** **)** |
  26. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`scan_sources<class_EditorFileSystem_scan_sources>` **(** **)** |
  28. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`update_file<class_EditorFileSystem_update_file>` **(** :ref:`String<class_string>` path **)** |
  30. +--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+
  31. Signals
  32. -------
  33. .. _class_EditorFileSystem_filesystem_changed:
  34. - **filesystem_changed** **(** **)**
  35. Emitted if the filesystem changed.
  36. .. _class_EditorFileSystem_resources_reimported:
  37. - **resources_reimported** **(** :ref:`PoolStringArray<class_poolstringarray>` resources **)**
  38. .. _class_EditorFileSystem_sources_changed:
  39. - **sources_changed** **(** :ref:`bool<class_bool>` exist **)**
  40. Emitted if the source of any imported file changed.
  41. Description
  42. -----------
  43. This object holds information of all resources in the filesystem, their types, etc.
  44. Member Function Description
  45. ---------------------------
  46. .. _class_EditorFileSystem_get_file_type:
  47. - :ref:`String<class_string>` **get_file_type** **(** :ref:`String<class_string>` path **)** const
  48. Get the type of the file, given the full path.
  49. .. _class_EditorFileSystem_get_filesystem:
  50. - :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem** **(** **)**
  51. Get the root directory object.
  52. .. _class_EditorFileSystem_get_filesystem_path:
  53. - :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem_path** **(** :ref:`String<class_string>` path **)**
  54. .. _class_EditorFileSystem_get_scanning_progress:
  55. - :ref:`float<class_float>` **get_scanning_progress** **(** **)** const
  56. Return the scan progress for 0 to 1 if the FS is being scanned.
  57. .. _class_EditorFileSystem_is_scanning:
  58. - :ref:`bool<class_bool>` **is_scanning** **(** **)** const
  59. Return true of the filesystem is being scanned.
  60. .. _class_EditorFileSystem_scan:
  61. - void **scan** **(** **)**
  62. Scan the filesystem for changes.
  63. .. _class_EditorFileSystem_scan_sources:
  64. - void **scan_sources** **(** **)**
  65. Check if the source of any imported resource changed.
  66. .. _class_EditorFileSystem_update_file:
  67. - void **update_file** **(** :ref:`String<class_string>` path **)**
  68. Update a file information. Call this if an external program (not Godot) modified the file.