code: public String[] list(final File file) {
          if (System.getSecurityManager() == null)
              return file.list();
          return AccessController.doPrivileged(new PrivilegedAction<String[]>() {
              @Override
              public String[] run() {
                  return file.list();
              }
          }, controlContext);
      }
docs: Returns a file's list. Same as calling
  file.list().
  
  @param file a file object
  @return a file's list.