directoryFiles method

List<File> directoryFiles(
  1. Directory directory
)

Implementation

List<File> directoryFiles(Directory directory) {
  return directory
      .listSync(recursive: true)
      .map((f) => File(f.path))
      .toList();
}