Reputation: 7188
It's very odd, when I call getApplicationDocumentsDirectory()
it returns the following path:
/data/user/0/co.XXX.dev/app_flutter
While running (await getApplicationDocumentsDirectory()).create(recursive: true)
creates a new folder at the above path:
/data/data/co.XXX.dev/app_flutter
According to Android Studio Device File Explorer the two paths are different
Why does it create the directory on a different path?
Upvotes: 0
Views: 493
Reputation: 7188
According to @blackapps (without further explanation), the two paths are linked to the same directory.
For that reason, when I create new files from one path, I'm able to read them from the other path.
If someone can explain more about the aim of this link, please edit this answer.
Upvotes: 0