Skip to content

Commit d31794c

Browse files
committed
Merge pull request #82849 from KoBeWi/change_dir_to_parallel_universe
Clarify `change_dir()` and access scopes
2 parents 6e57580 + 75eaefe commit d31794c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/DirAccess.xml

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<description>
7272
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]).
7373
Returns one of the [enum Error] code constants ([constant OK] on success).
74+
[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.
7475
</description>
7576
</method>
7677
<method name="copy">

0 commit comments

Comments
 (0)