public static File notHidden(final File file) { exists(file); if (file.isHidden()) throw new FileRuntimeException("File is hidden: " + file.getAbsolutePath()); return file; }
public static File file(final File file) { exists(file); if (!file.isFile()) throw new FileRuntimeException("Not a file: " + file.getAbsolutePath()); return file; }