ammarahm-ed / react-native-scoped-storage

MIT License
59 stars 10 forks source link

readFile return is not a file even when it is a file #21

Closed gakshat14 closed 2 years ago

gakshat14 commented 2 years ago

I'm using readFile to read a file but it seems that

dir.isFile() returns false even when it is a file.

After debugging isFile() reads muri which is returned something like this content://com.android.externalstorage.documents/tree/primary%3Aredacted/tree/primary%3Aredacted/.

file path passed is content://com.android.externalstorage.documents/tree/primary%3Aredacted/redacted--redacted.json.

Please let me know if I'm doing anything wrong.

gakshat14 commented 2 years ago

I was able to fix the issue, problem with my code. Thank you for the library!