itinance / itinance/react-native-fs

RNFS.DocumentDirPath wrong location

Open
#586 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

RNFS.DocumentDirPath resolves to: `/data/user/0/com.testapp/files` on both physical device and emulator.
However any attempted operation using that path fails saying there is no such file or directory.
When I use Android Studio Device File Explorer, for both the physical device and emulator, the path is actually: `/data/data/com.testapp/files/`. By hardcoding that path, all operations work fine.

What am I doing wrong here?
Thank you.

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.