fluttercommunity / fluttercommunity/flutter_downloader
Directory(savedDir).existsSync()
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
I've added as per this #249
I've added all params. I want to download this to internal storage.
My code is
var localPath = await getApplicationDocumentsDirectory(); // /data/user/0/com.example.app/app_flutter
var fileName = "landscapeVid.mp4";
await FlutterDownloader.enqueue(
url: url,
savedDir: localPath.toString(),
showNotification: true,
fileName: fileName,
openFileFromNotification: true,
saveInPublicStorage: false
);
getting this error :
'package:flutter_downloader/src/downloader.dart': Failed assertion: line 107 pos 12: 'Directory(savedDir).existsSync()': savedDir does not exist
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at package:flutter_downloader/src/downloader.dart line 107 and compare the savedDir passed to FlutterDownloader.enqueue with the path returned by getApplicationDocumentsDirectory(). Reproduce the assertion on Android with the supplied options; done means determining the cause and documenting or correcting the plugin's handling of this path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100