1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Normalize description of ResourceLoader.list_directory()

This commit is contained in:
Wierdox
2025-04-17 00:08:06 -07:00
parent c5c1cd4440
commit 0689522e61

View File

@@ -81,8 +81,8 @@
<description>
Lists a directory, returning all resources and subdirectories contained within. The resource files have the original file names as visible in the editor before exporting. The directories have [code]"/"[/code] appended.
[codeblock]
print(ResourceLoader.list_directory("res://assets/enemies/slime"))
# Prints ["extra_data/", "model.gltf", "model.tscn", "model_slime.png"]
print(ResourceLoader.list_directory("res://assets/enemies/slime"))
[/codeblock]
[b]Note:[/b] The order of files and directories returned by this method is not deterministic, and can vary between operating systems.
[b]Note:[/b] To normally traverse the filesystem, see [DirAccess].