@Override public BasicFileAttributes readAttributes() throws IOException { file.checkRead(); try { UnixFileAttributes attrs = UnixFileAttributes.get(file, followLinks); return attrs.asBasicFileAttributes(); } catch (UnixException x) { x.rethrowAsIOException(file); return null; // keep compiler happy } }