You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
hello ,when i use this lib chose a folder and react-native-fs to downloadFile, i get this error:
err Error: ENOENT: no such file or directory, open 'content://com.android.externalstorage.documents/tree/15F4-2D1A%3ADownload/document/15F4-2D1A%3ADownload/'
Unfortunately, the method we're using for directory picking is based off of SAF. While this works for some instances, RNFS does not support SAF at the moment (to the best of our knowledge).
This library is in severe need of documentation - it's something on our todo list that explains the limitations, real-world usages, and future roadmap
In the meantime, however, I would suggest against using this library. Maybe I can point you towards how we're using a non-SAF directory picker in our app, GitShark?
Android
For Android:
We're using a forked version of the MaterialFilePicker library that supports non-SAF directory picking (which does work with react-native-fs). To set this up, you need to add:
However, for iOS, we found that it was not advantageous from a UX perspective to implement a directory picker (again, for a myriad of reasons that will be in the future blog post). Instead, for our usage we simply drop files into our app's directory and disallow users to select folders. This requires two changes:
hello ,when i use this lib chose a folder and react-native-fs to downloadFile, i get this error:
there is my code:
can i get any help?
The text was updated successfully, but these errors were encountered: