private AFTPClient actionExistsFile ( ) throws PageException , IOException { required ( "remotefile" , remotefile ) ; AFTPClient client = getClient ( ) ; FTPFile file = existsFile ( client , remotefile , true ) ; Struct cfftp = writeCfftp ( client ) ; cfftp . setEL ( RETURN_VALUE , Caster . toBoolean ( file != null && file . isFile ( ) ) ) ; cfftp . setEL ( SUCCEEDED , Boolean . TRUE ) ; stoponerror = false ; return client ; }
check if a file exists or not