Asthalis Hello, I was wondering if there was a simple (and not system dependant) way to display the window of a directory content via GDScript ? The goal would be to quickly visualize the content of the user:// directory. Thanks for your help.
Toxe Asthalis What do you mean by "window of a directory"? Like opening the Windows file explorer and showing the files in the directory? Or do you just want to get the filenames and list them yourself?
Asthalis Toxe Yep, I do mean open a window just like an file explorer would, but I don't know if this can work for any OS.
Toxe Asthalis I just tried, looks like you can easily do that. OS.shell_show_in_file_manager(ProjectSettings.globalize_path("user://")) https://docs.godotengine.org/en/latest/classes/class_os.html#class-os-method-shell-show-in-file-manager
Asthalis Toxe Thanks, it worked fine ! I did not mention it but I still use Godot 3.5 for this project and the equivalent method is simply OS.shell_open(ProjectSettings.globalize_path("user://"))