Открыть папку (Open dir on godot) Godot.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ZeralldGames

Hello everyone! I would very much like to know how to open a folder for a year. I mean, I want that when you press the button, you open the system explorer in the folder specified by the code. I have a folder located at user:// - we searched for many hours and cannot find it, probably no one is interested in this issue. Thanks for any help!

RUS:
Всем привет! Я б хотел очень сильно узнать как открыть папку на годот. Всмысле я хочу,что бы при нажатии кнопки у вас открылся системный проводник в заданной кодом папке. У меня есть папка которая располагается по адресу user:// - мы искали много часов и не можем найти,вероятно,никто не интересуется данным вопросом. Спасибо за любую помощь!

:bust_in_silhouette: Reply From: AlexTheRegent

To open user:// folder with explorer (assuming that you use Windows OS) you need to use OS.execute method to execute command in cmd and OS.get_user_data_dir method to get absolute path to user:// folder. The following code will open user:// folder in explorer:

OS.execute("start", ["\"\"", OS.get_user_data_dir()])