listFilesRecursive property

Future<Iterable<File>> get listFilesRecursive

Asynchronously retrieves a list of all files recursively from the current directory.

This getter returns a Future that completes with an Iterable of File objects found within the directory and its subdirectories.

Example usage:

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

Returns:

  • A Future that completes with an Iterable of File objects.

Implementation

Future<Iterable<File>> get listFilesRecursive async => (await listAllRecursive).whereType<File>();