OS Error: No such file or directory, error no = 2 -- FLUTTER
you have to register your directory in pubspec.yaml
step 2
-use this plugin to scan pubspecs.yaml to get your assets
There's two different things here. First up, you can create a Directory
object for a path that doesn't (yet) exist on disk. This is so that you can create the directory. See the documentation for the Directory
class.
Secondly, Android has some implicit structure about where you are allowed to read from and write to disk. See the Android documentation on data storage.