I am using Nexus 7 running Android 4.3. Two directory paths on this device confuse me:
/storage/emulated/legacy /storage/emulated/0
If I call new File(<path>).getCanonicalPath() for any of them, I get the same way back. If I call the C realpath function with either, it will succeed and return the same path. It seems that each of them is its own canonical path, so they are different directories.
However, if I create a subdirectory in one, this subdirectory also appears in the other. This gives me the impression that they are two paths to the same directory.
Is there a better way to say that these paths are valid for the same directory?
source share