parseFileDataStore method
Implementation
@override
FileDataStore parseFileDataStore({required File file}) {
final match = filenameRegex.firstMatch(path.basename(file.path))!;
final collection = match.group(1)!;
final shard = match.group(2);
final encryptionEnabled = match.group(3) != null;
return buildFileDataStore(
settings:
EncryptedFilePersistorSettings(encryptionEnabled: encryptionEnabled),
collection: collection,
shard: shard,
);
}