code: public SftpFile[] ls(String path) throws SftpStatusException, SshException {
  
  		String actual = resolveRemotePath(path);
  
  		if (Log.isDebugEnabled()) {
  			Log.debug(this, "Listing files for " + actual);
  		}
  
  		SftpFile file = sftp.openDirectory(actual);
  		Vector<SftpFile> children = new Vector<SftpFile>();
  		while (sftp.listChildren(file, children) > -1) {
  			;
  		}
  		file.close();
  		SftpFile[] files = new SftpFile[children.size()];
  		int index = 0;
  		for (Enumeration<SftpFile> e = children.elements(); e.hasMoreElements();) {
  			files[index++] = e.nextElement();
  		}
  		return files;
  	}
docs: <p>
  List the contents remote directory.
  </p>
  
  <p>
  Returns a list of <a
  href="../../maverick/ssh2/SftpFile.html">SftpFile</a> instances for the
  remote directory.
  </p>
  
  @param path
  the path on the remote server to list
  
  @return a list of SftpFile for the remote directory
  
  @throws SftpStatusException
  @throws SshException