code: public FileStatus[] globStatus(Path pathPattern, PathFilter filter)
        throws IOException {
      String filename = pathPattern.toUri().getPath();
      List<String> filePatterns = GlobExpander.expand(filename);
      if (filePatterns.size() == 1) {
        return globStatusInternal(pathPattern, filter);
      } else {
        List<FileStatus> results = new ArrayList<FileStatus>();
        for (String filePattern : filePatterns) {
          FileStatus[] files = globStatusInternal(new Path(filePattern), filter);
          for (FileStatus file : files) {
            results.add(file);
          }
        }
        return results.toArray(new FileStatus[results.size()]);
      }
    }
docs: Return an array of FileStatus objects whose path names match pathPattern
  and is accepted by the user-supplied path filter. Results are sorted by
  their path names.
  Return null if pathPattern has no glob and the path does not exist.
  Return an empty array if pathPattern has a glob and no path matches it.
  
  @param pathPattern
  a regular expression specifying the path pattern
  @param filter
  a user-supplied path filter
  @return an array of FileStatus objects
  @throws IOException if any I/O error occurs when fetching file status