parseFileDataStore method

FileDataStore parseFileDataStore({
  1. required File file,
})

Implementation

FileDataStore parseFileDataStore({required File file}) {
  final match = filenameRegex.firstMatch(path.basename(file.path))!;
  final collection = match.group(1)!;
  final shard = match.group(2);

  return buildFileDataStore(
    collection: collection,
    shard: shard,
    settings: null,
  );
}