String[] pathes = getPath().replaceAll("\\\\", "/").split("/");
boolean find = false;
if (pathes.length > 0) {
for (int i = 0; i < pathes.length - 1; i++){
log.trace("Ftp client: we at: " + client.printWorkingDirectory() + ", go to \'" + pathes[i] + "'");
int reply = client.cwd(pathes[i]);
if (reply >= 400) {
log.warn("exist cwd " + pathes[i] + " responce code : " + client.getReplyCode() + ", reply: " + client.getReplyString());
return false;
}
log.trace("exist responce code : " + client.getReplyCode() + ", reply: " + client.getReplyString());