We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a93ae commit aec2014Copy full SHA for aec2014
packages/powersync_attachments_helper/lib/src/local_storage_adapter.dart
@@ -5,6 +5,7 @@ import 'package:path_provider/path_provider.dart';
5
/// Storage adapter for local storage
6
class LocalStorageAdapter {
7
Future<File> saveFile(String fileUri, Uint8List data) async {
8
+ await makeDir(fileUri);
9
final file = File(fileUri);
10
return await file.writeAsBytes(data);
11
}
@@ -36,6 +37,7 @@ class LocalStorageAdapter {
36
37
38
39
Future<void> copyFile(String sourceUri, String targetUri) async {
40
+ await makeDir(targetUri);
41
File file = File(sourceUri);
42
await file.copy(targetUri);
43
0 commit comments