if (!recursive) return nList("");
Vector rvVector = new Vector();
if (pathname.length()==0) pathname=".";
Vector files = sftpClient.ls(pathname);
for(int i=0; i<files.size();i++){
SFTPv3DirectoryEntry entry = (SFTPv3DirectoryEntry) files.get(i);
if (!entry.attributes.isDirectory()){
rvVector.add(entry.filename);
} else if (!entry.filename.equals(".") && !entry.filename.equals("..")){
nList(rvVector, currentDirectory, entry.filename);
}