From 75eaefe7a4e822d9704205bf62cc9fe563ca6805 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 5 Oct 2023 15:00:22 +0200 Subject: [PATCH] Clarify change_dir() and access scopes --- doc/classes/DirAccess.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/DirAccess.xml b/doc/classes/DirAccess.xml index a987f4b5b42..9c72bc2247e 100644 --- a/doc/classes/DirAccess.xml +++ b/doc/classes/DirAccess.xml @@ -71,6 +71,7 @@ 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.