itinance / itinance/react-native-fs

illegal operation on a directory, read

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

Description

```
var path = RNFS.DocumentDirectoryPath + '/test.txt';
// write the file
RNFS.writeFile(path, 'Lorem ipsum dolor sit amet', 'utf8')
.then((success) => {
console.log('FILE WRITTEN!');
})
.catch((err) => {
console.log('err:',err.message);
});
```

Running on the android simulator, keep reporting the following error

`err: EISDIR: illegal operation on a directory, read '/data/user/0/****/files/test.txt'`

Please help me

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.