class FileUtils {

  public static void createDirectory(String pathName) throws IOException {

    if (pathName == null) {
      throw new IOException("Path is null");
    }

    File path = new File(pathName);
    if (path.exists()) {
      return;
    }

    if (!path.mkdirs()) {
      throw new IOException("Failed to create directory");
    }
  }

}