readEntries

fun readEntries(successCallback: FileSystemEntriesCallback, errorCallback: ErrorCallback = definedExternally)(source)

The FileSystemDirectoryReader interface's readEntries() method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function.

MDN Reference