getDatPaths static method

Future<List<String>> getDatPaths()

Implementation

static Future<List<String>> getDatPaths() async {
  try {
    return _bigFilesDirectory
        .listSync()
        .where((FileSystemEntity file) => file is File && file.path.endsWith(".dat"))
        .map(
          (FileSystemEntity file) => file.uri.pathSegments.last,
        )
        .toList();
  } catch (e) {
    return <String>[];
  }
}