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