Can DirAccess open a SAF URI?

Godot Version

Godot 4.7.2

Question

I’m trying to access an URI through DirAccess.open() but it just returns null, It does work with FileAccess but I don’t want to open a file, I want to open a directory.

After checking the docs for DisplayServer.file_dialog_show() and the DirAccess class, nothing seems to point out that you can use DirAccess for URIs, so I am unsure.

DisplayServer.file_dialog_show() says:

Note: On Android, this method uses the Android Storage Access Framework (SAF).
The file picker returns a URI instead of a filesystem path. This URI can be passed directly to FileAccess to perform read/write operations.
When using FILE_DIALOG_MODE_OPEN_DIR, it returns a tree URI that grants full access to the selected directory. File operations inside this directory can be performed by passing a path on the form treeUri#relative/path/to/file to FileAccess.

I don’t think DirAccess supports it and the PR implementing SAF doesn’t mention anything about DirAccess.

You can open a proposal in the proposal tracker if there isn’t one open already.