Changing the current directory on native file dialog

Godot Version

4.2.2

Question

I’m making a tool that needs an image file to be easily accessible by the user later. As one of the options for accessing the file, I added a button to open a file dialog leading straight to the image file. However, as the godot file dialog doesn’t allow for interacting with the files in a folder beyond selecting them, I need to use windows native file dialog in order for the user to select/copy/drag out the image file. On top of that, file_dialog.current_path or current_dir doesn’t seem to affect a native file dialog at all. Is there any way to make the native file dialog set to a particular directory? Thank you!

I have tried to do this too, I suppose there’s no such a simple solution.

I think it depends on various factors, including your OS and what file dialog the OS uses natively.

The docs at FileDialog — Godot Engine (4.3) documentation in English say this:

Note: For native file dialogs, this property is only treated as a hint and may not be respected by specific OS implementations.

I’ve tried setting it in gdscript and in the Godot UI, and my OS doesn’t appear to follow what I’ve set for set_current_dir()