filetraverser/Unix.java
author Markus Bröker<broeker.markus@googlemail.com>
Fri, 20 Oct 2017 06:46:47 +0200
changeset 170 5a11538e7bc8
parent 151 a8c2649cf277
permissions -rw-r--r--
hgignore 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();
        }
    }
}