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