class_editorfilesystemdirectory.rst 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the EditorFileSystemDirectory.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_EditorFileSystemDirectory:
  5. EditorFileSystemDirectory
  6. =========================
  7. **Inherits:** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. A directory for the resource filesystem.
  12. Methods
  13. -------
  14. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`find_dir_index<class_EditorFileSystemDirectory_find_dir_index>` **(** :ref:`String<class_String>` name **)** const |
  16. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`find_file_index<class_EditorFileSystemDirectory_find_file_index>` **(** :ref:`String<class_String>` name **)** const |
  18. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`String<class_String>` | :ref:`get_file<class_EditorFileSystemDirectory_get_file>` **(** :ref:`int<class_int>` idx **)** const |
  20. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_file_count<class_EditorFileSystemDirectory_get_file_count>` **(** **)** const |
  22. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`get_file_import_is_valid<class_EditorFileSystemDirectory_get_file_import_is_valid>` **(** :ref:`int<class_int>` idx **)** const |
  24. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`get_file_path<class_EditorFileSystemDirectory_get_file_path>` **(** :ref:`int<class_int>` idx **)** const |
  26. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`String<class_String>` | :ref:`get_file_script_class_extends<class_EditorFileSystemDirectory_get_file_script_class_extends>` **(** :ref:`int<class_int>` idx **)** const |
  28. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`String<class_String>` | :ref:`get_file_script_class_name<class_EditorFileSystemDirectory_get_file_script_class_name>` **(** :ref:`int<class_int>` idx **)** const |
  30. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`String<class_String>` | :ref:`get_file_type<class_EditorFileSystemDirectory_get_file_type>` **(** :ref:`int<class_int>` idx **)** const |
  32. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`String<class_String>` | :ref:`get_name<class_EditorFileSystemDirectory_get_name>` **(** **)** |
  34. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_parent<class_EditorFileSystemDirectory_get_parent>` **(** **)** |
  36. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`String<class_String>` | :ref:`get_path<class_EditorFileSystemDirectory_get_path>` **(** **)** const |
  38. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_subdir<class_EditorFileSystemDirectory_get_subdir>` **(** :ref:`int<class_int>` idx **)** |
  40. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`int<class_int>` | :ref:`get_subdir_count<class_EditorFileSystemDirectory_get_subdir_count>` **(** **)** const |
  42. +--------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  43. Description
  44. -----------
  45. A more generalized, low-level variation of the directory concept.
  46. Method Descriptions
  47. -------------------
  48. .. _class_EditorFileSystemDirectory_find_dir_index:
  49. - :ref:`int<class_int>` **find_dir_index** **(** :ref:`String<class_String>` name **)** const
  50. Returns the index of the directory with name ``name`` or ``-1`` if not found.
  51. .. _class_EditorFileSystemDirectory_find_file_index:
  52. - :ref:`int<class_int>` **find_file_index** **(** :ref:`String<class_String>` name **)** const
  53. Returns the index of the file with name ``name`` or ``-1`` if not found.
  54. .. _class_EditorFileSystemDirectory_get_file:
  55. - :ref:`String<class_String>` **get_file** **(** :ref:`int<class_int>` idx **)** const
  56. Returns the name of the file at index ``idx``.
  57. .. _class_EditorFileSystemDirectory_get_file_count:
  58. - :ref:`int<class_int>` **get_file_count** **(** **)** const
  59. Returns the number of files in this directory.
  60. .. _class_EditorFileSystemDirectory_get_file_import_is_valid:
  61. - :ref:`bool<class_bool>` **get_file_import_is_valid** **(** :ref:`int<class_int>` idx **)** const
  62. Returns ``true`` if the file at index ``idx`` imported properly.
  63. .. _class_EditorFileSystemDirectory_get_file_path:
  64. - :ref:`String<class_String>` **get_file_path** **(** :ref:`int<class_int>` idx **)** const
  65. Returns the path to the file at index ``idx``.
  66. .. _class_EditorFileSystemDirectory_get_file_script_class_extends:
  67. - :ref:`String<class_String>` **get_file_script_class_extends** **(** :ref:`int<class_int>` idx **)** const
  68. .. _class_EditorFileSystemDirectory_get_file_script_class_name:
  69. - :ref:`String<class_String>` **get_file_script_class_name** **(** :ref:`int<class_int>` idx **)** const
  70. .. _class_EditorFileSystemDirectory_get_file_type:
  71. - :ref:`String<class_String>` **get_file_type** **(** :ref:`int<class_int>` idx **)** const
  72. Returns the file extension of the file at index ``idx``.
  73. .. _class_EditorFileSystemDirectory_get_name:
  74. - :ref:`String<class_String>` **get_name** **(** **)**
  75. Returns the name of this directory.
  76. .. _class_EditorFileSystemDirectory_get_parent:
  77. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_parent** **(** **)**
  78. Returns the parent directory for this directory or null if called on a directory at ``res://`` or ``user://``.
  79. .. _class_EditorFileSystemDirectory_get_path:
  80. - :ref:`String<class_String>` **get_path** **(** **)** const
  81. Returns the path to this directory.
  82. .. _class_EditorFileSystemDirectory_get_subdir:
  83. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_subdir** **(** :ref:`int<class_int>` idx **)**
  84. Returns the subdirectory at index ``idx``.
  85. .. _class_EditorFileSystemDirectory_get_subdir_count:
  86. - :ref:`int<class_int>` **get_subdir_count** **(** **)** const
  87. Returns the number of subdirectories in this directory.