I'm building an Android app that interacts with the file system of a device, and I need a static utility method to occasionally check if a File
object is actually a symbolic link to a different location.
I suppose the most obvious solution would be to use a method from the standard Java library such as Files#isSymbolicLink()
, but unfortunately this method does not exist in the Android SDK as explained in this other StackOverflow post.
Is there a reliable way to check if a File
is a symbolic link or just a regular file?