How to erase all files in Expo.FileSystem.documentDirectory?

Expo FileSystem doesn’t seem to have a method to iterate all the files in a directory, like fs.readdir.

Any ideas how to do this cross-platform?

If you take a look at the Expo docs, there is actually a method to iterate all files in a directory: Expo.FileSystem.readDirectoryAsync(fileUri)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.