/** Create a unix file that represents a native directory */ public NativeDirFD(NativeFileSystem fs, File dir) { if (!dir.isDirectory()) throw new RuntimeException("not a dir: " + dir); this.fs = fs; this.dir = dir; }