private AFTPClient actionListDir ( ) throws PageException , IOException { required ( "name" , name ) ; required ( "directory" , directory ) ; AFTPClient client = getClient ( ) ; FTPFile [ ] files = client . listFiles ( directory ) ; if ( files == null ) files = new FTPFile [ 0 ] ; pageContext . setVariable ( name , toQuery ( files , "ftp" , directory , client . getRemoteAddress ( ) . getHostName ( ) ) ) ; writeCfftp ( client ) ; return client ; }
List data of a ftp connection