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