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