birdofpreyru / react-native-fs

File system access for React Native
https://dr.pogodin.studio/docs/react-native-file-system
Other
160 stars 12 forks source link

Correct converstion of file path to Uri #6

Closed IanOpenSpace closed 1 year ago

IanOpenSpace commented 1 year ago

I was using RNFS.readFile() on a file with & in its name and was getting a file not found error. Traced it down to this line. Uri.fromFile() has been around since API Level 1.

Full disclosure: I am currently using and tested this change on the original RNFS repo.