itinance / itinance/react-native-fs

RNFS.stat reports file not exists, but RNFS.exists reports file exists.

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

Description

The code that call RNFS.stat (version 2.9.11) works.

But after I upgrade RNFS to the latest version, and RNFS.stat always run into exception, says file does not exists.

My sample code:

```
let path='file:///data/user/0/com.fzbdemo8/cache/1531620707190.JPEG'
RNFS.stat(path).then(
(stat)=>{}
).catch((err) => {
console.log(err.message, err.code); //run into exception
});
```

The file do exists.

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.