From 0689522e61b16fef5260bd74b65ae50e03efe4f9 Mon Sep 17 00:00:00 2001 From: Wierdox <104049283+Wierdox@users.noreply.github.com> Date: Thu, 17 Apr 2025 00:08:06 -0700 Subject: [PATCH] Normalize description of ResourceLoader.list_directory() --- doc/classes/ResourceLoader.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/ResourceLoader.xml b/doc/classes/ResourceLoader.xml index ae9c837b8cd..47bcf574276 100644 --- a/doc/classes/ResourceLoader.xml +++ b/doc/classes/ResourceLoader.xml @@ -81,8 +81,8 @@ 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].