itinance / itinance/react-native-fs

ENOENT: open failed: EACCES (Permission denied)

Open
#1,175 20 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I'm getting this error whilst trying to open files in the directory `ExternalDirectoryPath`.

I have seen that others have fixed it by targeting a lower SDK version (29 max) so that they can opt out of scoped storage.

This isn't working for me consistently and after reading the [android docs](https://developer.android.com/training/data-storage/app-specific#external) it seems this shouldn't be causing any issue, we shouldn't even need to request permissions.

For reference `ExternalDirectoryPath` in RNFS returns the same as androids `getExternalFilesDir() ` method which is meant to not require permissions in most cases.

Anyone experienced this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.