scanMedia method
Scan media files in a specific path
Implementation
Future<void> scanMedia(String path) async {
try {
await _repository.scanMedia(path);
} catch (e) {
if (e is MediaError) {
rethrow;
}
throw MediaErrorFactory.storageError(
message: 'Failed to scan media: ${e.toString()}',
path: path,
operation: 'scan',
);
}
}