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 aec2014 commit 21d6427Copy full SHA for 21d6427
packages/powersync_attachments_helper/lib/src/local_storage_adapter.dart
@@ -31,8 +31,8 @@ class LocalStorageAdapter {
31
Future<void> makeDir(String fileUri) async {
32
bool exists = await fileExists(fileUri);
33
if (!exists) {
34
- Directory newDirectory = Directory(fileUri);
35
- await newDirectory.create(recursive: true);
+ Directory parentDirectories = File(fileUri).parent;
+ await parentDirectories.create(recursive: true);
36
}
37
38
0 commit comments