public DirStatus listdir(final String path, final String nameFilter, int maxAllowedSize) throws FileNotFoundException,
      IOException, InterruptedException {
    FileStatus[] fileStatuses = this.listdir(path);
    return filterAndTruncateDirStatus(nameFilter, maxAllowedSize, fileStatuses);
  }
@param path : list files and dirs in this path
@param nameFilter : if not empty or null, then file names that contain this are only sent.
@param maxAllowedSize : maximum number of files sent in output. -1 means infinite.
@return
@throws FileNotFoundException
@throws IOException
@throws InterruptedException
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java