listFiles property

Future<Iterable<File>> get listFiles

Asynchronously retrieves a list of all files in the current directory.

This getter returns a Future that completes with an Iterable of File objects, filtering out any non-file entities.

Example usage:

final files = await instance.listFiles;
for (var file in files) {
  print(file.path);
}

Implementation

Future<Iterable<File>> get listFiles async => (await listAll).whereType<File>();