godot
Godot 5mo ago
Jump
Difficulties with retrieving the selected file from FileDialog
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    copycat
    5mo ago 100%

    file_path = await new_dialog.files_selected

    You probably want file_selected, not files. When the file mode is set to single file, then only file_selected signal is emitted, and when the file mode is set to multiple files, only files_selected is emitted. So if you use await files_selected when file mode is set to single file, then it will be stuck forever.

    9