Files
godot-docs/classes/class_editorfilesystem.rst
2017-09-02 17:15:33 +02:00

105 lines
5.4 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
.. _class_EditorFileSystem:
EditorFileSystem
================
**Inherits:** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Resource filesystem, as the editor sees it.
Member Functions
----------------
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_string>` | :ref:`get_file_type<class_EditorFileSystem_get_file_type>` **(** :ref:`String<class_string>` path **)** const |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` | :ref:`get_filesystem<class_EditorFileSystem_get_filesystem>` **(** **)** |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` | :ref:`get_filesystem_path<class_EditorFileSystem_get_filesystem_path>` **(** :ref:`String<class_string>` path **)** |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`get_scanning_progress<class_EditorFileSystem_get_scanning_progress>` **(** **)** const |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_scanning<class_EditorFileSystem_is_scanning>` **(** **)** const |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| void | :ref:`scan<class_EditorFileSystem_scan>` **(** **)** |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| void | :ref:`scan_sources<class_EditorFileSystem_scan_sources>` **(** **)** |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| void | :ref:`update_file<class_EditorFileSystem_update_file>` **(** :ref:`String<class_string>` path **)** |
+--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
Signals
-------
- **filesystem_changed** **(** **)**
Emitted if the filesystem changed.
- **resources_reimported** **(** :ref:`PoolStringArray<class_poolstringarray>` resources **)**
- **sources_changed** **(** :ref:`bool<class_bool>` exist **)**
Emitted if the source of any imported file changed.
Description
-----------
This object holds information of all resources in the filesystem, their types, etc.
Member Function Description
---------------------------
.. _class_EditorFileSystem_get_file_type:
- :ref:`String<class_string>` **get_file_type** **(** :ref:`String<class_string>` path **)** const
Get the type of the file, given the full path.
.. _class_EditorFileSystem_get_filesystem:
- :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem** **(** **)**
Get the root directory object.
.. _class_EditorFileSystem_get_filesystem_path:
- :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>` **get_filesystem_path** **(** :ref:`String<class_string>` path **)**
.. _class_EditorFileSystem_get_scanning_progress:
- :ref:`float<class_float>` **get_scanning_progress** **(** **)** const
Return the scan progress for 0 to 1 if the FS is being scanned.
.. _class_EditorFileSystem_is_scanning:
- :ref:`bool<class_bool>` **is_scanning** **(** **)** const
Return true of the filesystem is being scanned.
.. _class_EditorFileSystem_scan:
- void **scan** **(** **)**
Scan the filesystem for changes.
.. _class_EditorFileSystem_scan_sources:
- void **scan_sources** **(** **)**
Check if the source of any imported resource changed.
.. _class_EditorFileSystem_update_file:
- void **update_file** **(** :ref:`String<class_string>` path **)**
Update a file information. Call this if an external program (not Godot) modified the file.