class_editorfilesystem.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. Remitted if a resource is reimported.
  39. .. _class_EditorFileSystem_sources_changed:
  40. - **sources_changed** **(** :ref:`bool<class_bool>` exist **)**
  41. Emitted if the source of any imported file changed.
  42. Description
  43. -----------
  44. This object holds information of all resources in the filesystem, their types, etc.
  45. Member Function Description
  46. ---------------------------
  47. .. _class_EditorFileSystem_get_file_type:
  48. - :ref:`String<class_string>` **get_file_type** **(** :ref:`String<class_string>` path **)** const
  49. Get the type of the file, given the full path.
  50. .. _class_EditorFileSystem_get_filesystem:
  51. - :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem** **(** **)**
  52. Get the root directory object.
  53. .. _class_EditorFileSystem_get_filesystem_path:
  54. - :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem_path** **(** :ref:`String<class_string>` path **)**
  55. Returns a view into the filesystem at ``path``.
  56. .. _class_EditorFileSystem_get_scanning_progress:
  57. - :ref:`float<class_float>` **get_scanning_progress** **(** **)** const
  58. Return the scan progress for 0 to 1 if the FS is being scanned.
  59. .. _class_EditorFileSystem_is_scanning:
  60. - :ref:`bool<class_bool>` **is_scanning** **(** **)** const
  61. Return true of the filesystem is being scanned.
  62. .. _class_EditorFileSystem_scan:
  63. - void **scan** **(** **)**
  64. Scan the filesystem for changes.
  65. .. _class_EditorFileSystem_scan_sources:
  66. - void **scan_sources** **(** **)**
  67. Check if the source of any imported resource changed.
  68. .. _class_EditorFileSystem_update_file:
  69. - void **update_file** **(** :ref:`String<class_string>` path **)**
  70. Update a file information. Call this if an external program (not Godot) modified the file.