Skip to content

Commit

Permalink
Merge pull request #82849 from KoBeWi/change_dir_to_parallel_universe
Browse files Browse the repository at this point in the history
Clarify `change_dir()` and access scopes
  • Loading branch information
akien-mga committed Oct 5, 2023
2 parents 6e57580 + 75eaefe commit d31794c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/DirAccess.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<description>
Changes the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]).
Returns one of the [enum Error] code constants ([constant OK] on success).
[b]Note:[/b] The new directory must be within the same scope, e.g. when you had opened a directory inside [code]res://[/code], you can't change it to [code]user://[/code] directory. If you need to open a directory in another access scope, use [method open] to create a new instance instead.
</description>
</method>
<method name="copy">
Expand Down

0 comments on commit d31794c

Please sign in to comment.