fluttercommunity / fluttercommunity/flutter_downloader
Wrong saveDir value on iOS
Open
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
On iOS if the path doesn't end with `/`, flutter_downloader adds `/(null)` and fails the download.
Steps to reproduce:
1. `Directory directory = await getApplicationDocumentsDirectory();`
2. directory.path will be something like "_/SOME/PATH/Documents_"
3. `await FlutterDownloader.enqueue(..., saveDir: directory.path);`
4. `final tasks = await FlutterDownloader.loadTasks();`
5. checking last task in `tasks`, its `saveDir` value will be "_/SOME/PATH/Documents/(null)_"
flutter_downloader version: 1.2.2
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.