Forum Discussion
ComeOnAndSam
4 years agoExplorer
Permission denied on accessing storage even though I gave it
I'm trying to call Directory.EnumerateFiles on "storage/emulated/0/Android".
In unity I called
if (!Permission.HasUserAuthorizedPermission(Permission.ExternalStorageRead))
{
Permission.RequestUserPermission(Permission.ExternalStorageRead);
}And then the permissions window appeared and I hit allow.
Yet when I call EnumerateFiles, I'm told "IOException: Permission Denied"
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 2 years ago
- 4 months ago
- 3 years ago
- 9 months ago