Skip to content

Commit dfa8fe9

Browse files
committed
Fix downloading assets when the parent directory does not exist
1 parent 26ec3ad commit dfa8fe9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/flutterflow_cli_base.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Future _downloadAssets({
196196
final response = await client.get(Uri.parse(url));
197197
if (response.statusCode >= 200 && response.statusCode < 300) {
198198
final file = File(fileDest);
199+
await file.parent.create(recursive: true);
199200
await file.writeAsBytes(response.bodyBytes);
200201
} else {
201202
stderr.write('Error downloading asset $path. This is probably fine.\n');

0 commit comments

Comments
 (0)