java - determining if a file is a link
Question
How do you do it, or is it even possible?
I suppose you could fiddle with getCanonicalWhatever and the original path, but that's messy and I don't like it. Please include a definitive reason if you suggest it.
Solution
See the article How to deal with filesystem softlinks/symbolic links in Java
In short, wait until Java 7 or do a little JNI method
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow