FileSystem API: Listing Files

First of all I would like to thank all those who have helped me previously, it is much appreciated.

My issue is with the FileSystem API. I cannot find anything in the docs that explains how to list all the files downloaded to the app. How could I achieve this in Expo?

Thanks in advance.

Hey @sunnyb,

You can enumerate the contents of the app’s directory with https://docs.expo.io/versions/v38.0.0/sdk/filesystem/#filesystemreaddirectoryasyncfileuri You could iterate through and use FileSystem.getInfoAsync() to determine if it’s a file or folder.

Cheers,
Adam

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