react-native-file-access icon indicating copy to clipboard operation
react-native-file-access copied to clipboard

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

Open dcorbin opened this issue 2 years ago • 0 comments

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

Bug File.ls(that_directory) 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.

dcorbin avatar Jan 16 '24 01:01 dcorbin