public static File getExistingFile()

in src/main/java/org/apache/datasketches/Files.java [85:96]


  public static File getExistingFile(final String fileName) {
    checkFileName(fileName);
    final File file = new File(fileName);
    if (file.isFile()) {
      return file;
    }
    if (file.isDirectory()) {
      throw new RuntimeException(LS + "FileName is a Directory: " + fileName);
    }

    throw new RuntimeException(LS + "FileName does not exist: " + fileName);
  }