title: Flutter Dio package download path
body: <p>My main goal is to download a file from a link and then save it to the phone's internal storage so that it'll be accessible through the phone's file manager. I'm currently trying out <a href="https://pub.dartlang.org/packages/dio" rel="nofollow noreferrer">Dio</a> package by running the example <a href="https://github.com/flutterchina/dio/blob/master/example/download.dart" rel="nofollow noreferrer">code</a> given in the package's repo. Upon running the program, I ran into a path problem. When I used <code>./example/flutter.png</code> as the download path, <code>I/flutter (10109): FileSystemException: Cannot open file, path = './example/flutter.png' (OS Error: No such file or directory, errno = 2)</code> shows up. And when I used <code>(await getApplicationDocumentsDirectory()).path</code> which produces a <code>String</code> with the value of: <code>/data/user/0/com.example.downloadexample/app_flutter</code> as the path, no error showed up, but the file wasn't there. I tried different variation of the latter path, but with no success. Can someone help me with this problem?</p>
  
  <p>Many thanks in advance.</p>