How to grant access to external files outside of res:// and user:// on macOS?

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


I’m on macOS, and I’m trying to load an image file from the Desktop (or any other external directory) of my computer using:


But Debugger shows me this Error:

_load: No loader found for resource: <...path_to_image...>
load: Error loading resource: '<...path_to_image...>'

It works fine if I load an image from the res:// folder though.

How do I grant access to File System to a Godot game?
For example, I can see that the FileDialog node has an access property for this:
enter image description here
Is there something similar for ResourceLoader?

Thank you!