예제 #1
0
  /*
   * Checks if directory doesn't already exist, then makes the file and
   * returns true if all went well. Returns false if the file directory
   * already exists.
   */
  public static boolean createDirectory(File dir, String hideCommand)
      throws IOException, InterruptedException {
    if (!dir.exists()) {
      dir.mkdir();

      if (!hideCommand.trim().equals("")) {
        // hideFile(dir);
      }
      return true;
    }

    return false;
  }