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

#1

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?

0 Likes

#2

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)

0 Likes

closed #3

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

0 Likes