private boolean existsDir(FTPClient client, String strPath) throws PageException, IOException {
strPath=strPath.trim();
// get parent path
FTPPath path=new FTPPath(client.printWorkingDirectory(),strPath);
String p=path.getPath();
String n=path.getName();
strPath=p+""+n;
if("//".equals(p))strPath="/"+n;
if(!strPath.endsWith("/"))strPath+="/";