List<IPath> rezult = new LinkedList<IPath>();
FTPFile[] names = client.listFiles();
for (FTPFile i : names) {
rezult.add(new FileUtilFtpImpl(getPath() + i.getName() + (i.isDirectory() ? File.separatorChar : ""), getUsername(), getPassword(), getHost()));
}
client.disconnect();
return rezult;
}
public IPath mkdir(String lastPathName) throws IOException {
log.debug("FTP mkdir: to=" + this + ", lastPathName=" + lastPathName);