예제 #1
0
  private boolean notEmpty(File indexPath) {

    if (indexPath.isDirectory() == false) {
      System.out.println(indexPath.toString() + " is not directory!\n");
      return false;
    }

    File[] indexs = indexPath.listFiles();

    if (indexs == null) {

      return false;
    }

    return true;
  }