Is there a way to open the OS file manager?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mateusak
:warning: Old Version Published before Godot 3 was released.

And get the path of the selected file.

I can’t use the Godot file system because it doesn’t show up and it’s also really ugly.

:bust_in_silhouette: Reply From: volzhs

There is a commit for this Merge pull request #4737 from Geequlim/filesystem-show_in_explore · godotengine/godot@b0a5347 · GitHub
You can get it probably godot 2.1.
And there are relative commits for the file system to be better than 2.0.x release.

:bust_in_silhouette: Reply From: Geequlim

You can use the code below to open a directory in native explorer.

OS. shell_open(str(“file://”, absoluteDirPath))

For reference, OS. shell_open is also what Godot’s editor uses:
https://github.com/godotengine/godot/blob/3.2.1-stable/editor/filesystem_dock.cpp#L1557

Enhex | 2020-05-07 20:05

This does not work on Android.

blurrred | 2021-08-18 22:15