code: public File[] getFiles() {
  
          String path = mRequest.getParameter("path");
          if (path == null) {
              path = mApp.getInitParameter("defaultPath");
          }
          if (path == null) {
              path = "/";
          }
  
          File activefile = new File(path);
          if( activefile.isDirectory()) {
              return activefile.listFiles();
          } else {
              return null;
          }
      }
docs: Gets an array of files in the directory specified by the "path"
  query parameter.