Get unique path irrespective of symlinks

21 views Asked by At

I have two paths to the sd memory i get when accessing.

  1. /mnt/sdcard
  2. /storage/sdcard0

Actually both point to the same file location but still I am not sure how I could find that both are same and show only one location.

Even doing

file.getAbsolutePath()

on individual file objects, gives different paths. (I was expecting them to be giving same path as they are pointing to same directory).

0

There are 0 answers