code: public static boolean isFolderExist(String directoryPath) {
          if (StringUtils.isEmpty(directoryPath)) {
              return false;
          }
  
          File dire = new File(directoryPath);
          return (dire.exists() && dire.isDirectory());
      }
docs: Indicates if this file represents a directory on the underlying file system.
  
  @param directoryPath
  @return