code: public String []list() throws IOException
    {
      try {
        String []list = getFile().list();
  
        if (list != null)
          return list;
      } catch (AccessControlException e) {
        log.finer(e.toString());
      }
  
      return new String[0];
    }
docs: Returns a list of files in the directory.