code: private AFTPClient actionExistsDir() throws PageException, IOException {
  	required("directory", directory);
  
  	AFTPClient client = getClient();
  	boolean res = existsDir(client, directory);
  	Struct cfftp = writeCfftp(client);
  
  	cfftp.setEL(RETURN_VALUE, Caster.toBoolean(res));
  	cfftp.setEL(SUCCEEDED, Boolean.TRUE);
  
  	stoponerror = false;
  	return client;
      }
docs: check if a directory exists or not
  
  @return FTPCLient
  @throws PageException
  @throws IOException