question: 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 ; }
target:  check if a directory exists or not