Doc: Mention that Directory pre-opens res:// by default

This may be considered a bug, so we might change that in the future.
See #24149.
This commit is contained in:
Rémi Verschelde 2020-01-09 10:18:43 +01:00
parent 28655e16d6
commit c6b6731857

View File

@ -5,6 +5,7 @@
</brief_description>
<description>
Directory type. It is used to manage directories and their content (not restricted to the project folder).
When creating a new [Directory], its default opened directory will be [code]res://[/code]. This may change in the future, so it is advised to always use [method open] to initialize your [Directory] where you want to operate, with explicit error checking.
Here is an example on how to iterate through the files of a directory:
[codeblock]
func dir_contents(path):