filetraverser/Unix.java
author Markus Bröker<broeker.markus@googlemail.com>
Fri, 20 Oct 2017 06:41:27 +0200
changeset 168 dfb60716880c
parent 151 a8c2649cf277
permissions -rw-r--r--
Broken OSX Demo added

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();
        }
    }
}