directoryReleaseFiles method

List<ReleaseFile> directoryReleaseFiles(
  1. Directory directory
)

Implementation

List<ReleaseFile> directoryReleaseFiles(Directory directory) {
  var dirPath = directory.path;

  var files = directory.listSync(recursive: true).whereType<File>().toList();

  return files.map((f) => f.toReleaseFile(parentPath: dirPath)).toList();
}