filetraverser/Unix.java
author Markus Bröker<broeker.markus@googlemail.com>
Sun, 10 Feb 2019 13:17:01 +0100
changeset 173 374a86886bc5
parent 151 a8c2649cf277
permissions -rw-r--r--
LAST-DIGIT-BUG: INCREMENT before LF

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