Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeFileDialog - setting root subfolder to anything other than '/', '.', and '\' from editor returns an error #27

Closed
Pandji25 opened this issue Nov 28, 2023 · 0 comments · Fixed by #28

Comments

@Pandji25
Copy link

Every time I type something on the root_subfolder property in the editor, it returns this error:

E 0:00:01:0799   godot::NativeFileDialog::set_root_subfolder: root_subfolder must be an existing sub-directory.
  <C++ Error>    Condition "!DirAccess::dir_exists_absolute(get_root_string() + p_root)" is true.
  <C++ Source>   src\native_file_dialog.cpp:218 @ godot::NativeFileDialog::set_root_subfolder()

I can only type '/', '.', and ''.

However, setting the root_subfolder in the _ready() function works just fine.

I am using Godot 4.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant