genericUser
genericUser

Reputation: 7188

Flutter Directory path and Directory create path are different

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

enter image description here

Why does it create the directory on a different path?

Upvotes: 0

Views: 493

Answers (1)

genericUser
genericUser

Reputation: 7188

The two paths are linked to the same directory

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

Related Questions