code: public static List<File> getFiles(String inputPath) {
      File file = new File(inputPath);
      if (!inputPath.contains("*")) {
        List<File> res = new ArrayList<>();
        if (file.exists()) {
          res.add(file);
        }
        return res;
      } else {
        String prefix = inputPath.substring(0, inputPath.indexOf(AlluxioURI.WILDCARD) + 1);
        String parent = new File(prefix).getParent();
        return getFiles(inputPath, parent);
      }
    }
docs: Gets the files (on the local filesystem) that match the given input path.
  If the path is a regular path, the returned list only contains the corresponding file;
  Else if the path contains wildcards, the returned list contains all the matched Files.
  
  @param inputPath The input file path (could contain wildcards)
  @return a list of files that matches inputPath