private AFTPClient actionExists ( ) throws PageException , IOException { required ( "item" , item ) ; AFTPClient client = getClient ( ) ; FTPFile file = existsFile ( client , item , false ) ; Struct cfftp = writeCfftp ( client ) ; cfftp . setEL ( RETURN_VALUE , Caster . toBoolean ( file != null ) ) ; cfftp . setEL ( SUCCEEDED , Boolean . TRUE ) ; return client ; }
check if a file or directory exists