code: public String[] list() throws IOException {
      FileStatus[] fileStatus =
          fs.listStatus(directory, LuceneIndexFileNameFilter.getFilter());
      String[] result = new String[fileStatus.length];
      for (int i = 0; i < fileStatus.length; i++) {
        result[i] = fileStatus[i].getPath().getName();
      }
      return result;
    }
docs: /* (non-Javadoc)
  @see org.apache.lucene.store.Directory#list()