-
Hi. I tried to download a file but want to save inside a folder like visualized below:
I tried to following: import 'package:dcli/dcli.dart';
void main(List<String> arguments) {
print('Starting downloads\n');
fetch(
url:
'https://github.com/YTVanced/VancedMicroG/releases/latest/download/microg.apk',
saveToPath: './downloads/microg.apk',
fetchProgress: FetchProgress.showBytes,
);
print('\nDownload finished');
} I get an error as follows:
dcli: ^1.17.1Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "windows_x64" |
Beta Was this translation helpful? Give feedback.
Answered by
bsutton
Apr 29, 2023
Replies: 1 comment
-
sorry, I didn't see this discussion when it was first raised. For other people, the problem is that you need to create the 'downloads' diectory before you run the fetch command. The message:
This message probably should be a bit clearer. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iqfareez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry, I didn't see this discussion when it was first raised.
For other people, the problem is that you need to create the 'downloads' diectory before you run the fetch command.
The message:
This message probably should be a bit clearer.