alpha0010 / react-native-file-access

Filesystem access for React Native
MIT License
298 stars 18 forks source link

FileSystem.ls of an empty directory "returns" an error instead of [] #80

Closed dcorbin closed 5 months ago

dcorbin commented 6 months ago

react-native: 0.73.1 react-native-file-access: 3.0.4 Platform: IOS (untested on Android)

Bug File.ls(thatdirectory) should be giving back an empty array, but it's giving me an error: <Failed to list '.../Library/Developer/CoreSimulator/Devices/EFBB9369-7017-4DFB-9849-711E7B13FB8F/data/Containers/Data/Application/725BAB6C-1A19-4CE1-B526-960817C14CB7/Library/Sounds'> (Note: this is running in the Simulator)._ To reproduce Make an empty directory, and then call FileSystem.ls on that directory

Details If I add a file to the empty directory, it does not error-out. I don't have hand demo, but will attempt to make one later this week.

alpha0010 commented 5 months ago

Are you able to try v3.0.5? It has slightly more detailed iOS error messages, which should help debug this issue.

dcorbin commented 5 months ago

I will try to do so within the next few days.

dcorbin commented 5 months ago

It's not happening now. Sorry.