Wrong saveDir value on iOS
See original GitHub issueOn iOS if the path doesn’t end with /
, flutter_downloader adds /(null)
and fails the download.
Steps to reproduce:
Directory directory = await getApplicationDocumentsDirectory();
- directory.path will be something like “/SOME/PATH/Documents”
await FlutterDownloader.enqueue(..., saveDir: directory.path);
final tasks = await FlutterDownloader.loadTasks();
- checking last task in
tasks
, itssaveDir
value will be “/SOME/PATH/Documents/(null)”
flutter_downloader version: 1.2.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
iOS update and restore errors - Apple Support
Learn how to solve iOS update and restore errors. ... [error number]," use these steps. If you still see the error, try the...
Read more >Configuration Variables — Ren'Py Documentation
To locate the save directory, read config.savedir instead of this variable. ... The default value is False, which means that menu only the...
Read more >Troubleshooting iOS/iPadOS device enrollment errors in ...
The following table lists errors that end users might see while enrolling iOS/iPadOS devices in Intune. Error message, Issue, Resolution ...
Read more >MacRumors: Apple News and Rumors
As of writing, only Amazon is offering the M2 iPad Pro at this low of a price. The Apple Pencil 2 is available...
Read more >Screen Time Wrong? Showing Inaccurate Usage on iPhone ...
Many iPhone and iPad users have discovered Screen Time is reporting incorrect time estimates for apps and webpages, sometimes showing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
maybe you should check the first task in tasks.
flutter_downloader: ^1.5.2
I can still reproduce this on ios simulator when usinggetApplicationDocumentsDirectory()
. If I rather save into a subfolder inside the documents, then its okay, also as @jimmycasey wrote when simply appending aPlatform.pathSeparator
at the end of documents folder, it also works✖️
getApplicationDocumentsDirectory()
:/Users/<username>/Library/Developer/CoreSimulator/Devices/2833D949-3B27-47CB-9377-AAF6EC9E5F26/data/Containers/Data/Application/716965B2-D072-40BB-8EA0-32F6EA1C97BB/Documents/(null)
✔️
getApplicationDocumentsDirectory() + Platform.pathSeparator
/Users/<username>/Library/Developer/CoreSimulator/Devices/2833D949-3B27-47CB-9377-AAF6EC9E5F26/data/Containers/Data/Application/716965B2-D072-40BB-8EA0-32F6EA1C97BB/Documents
✔️
getApplicationDocumentsDirectory() + Platform.pathSeparator + 'DL'
/Users/<username>/Library/Developer/CoreSimulator/Devices/2833D949-3B27-47CB-9377-AAF6EC9E5F26/data/Containers/Data/Application/716965B2-D072-40BB-8EA0-32F6EA1C97BB/Documents/DL