diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-09 12:32:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 12:32:31 +0100 |
commit | 2718179bf3b30c8e81dd12349895aac7d80ca9f0 (patch) | |
tree | b498fd65b210248b8a958342191fc6123c33e226 | |
parent | 28655e16d65ba8e5e281dd1be65d21b6630559c3 (diff) | |
parent | c6b673185749c8bbfda73761e710f1749ccec162 (diff) |
Merge pull request #34944 from akien-mga/doc-directory-preopened
Doc: Mention that Directory pre-opens res:// by default
-rw-r--r-- | doc/classes/Directory.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml index 754fafadbe..91256359fb 100644 --- a/doc/classes/Directory.xml +++ b/doc/classes/Directory.xml @@ -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): |