FileTraverser Demo added
Proper handling of symlinks in java apps
committer: Markus Bröker <mbroeker@largo.homelinux.org>
public class Unix {
public static native int isUnixLink(String name);
public static boolean isLink(String name) {
if (isUnixLink(name) == 1)
return true;
return false;
}
static {
try {
System.loadLibrary("Unix");
} catch (UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
}