Package it.sauronsoftware.ftp4j

Examples of it.sauronsoftware.ftp4j.FTPClient.download()


            try {
                client.changeDirectory("/");
                if (StringUtils.hasText(_workingFolder)) {
                    client.changeDirectory(_workingFolder);
                }
                client.download(_fileName, temp);
            } catch (FTPException ex) {
                // file doe not exists, file not found
                if (ex.getCode() != 450
                        && ex.getCode() != 550) {
                    throw ex;
View Full Code Here


                FTPClient client = new FTPClient();
                client.connect(Shared.getConfig("ftpHost"));
                client.login(Shared.getConfig("ftpUser"), Shared.getConfig("ftpPass"));
                client.changeDirectory(Shared.getConfig("ftpDir"));
                File ff = new File(Constants.tmpDir + Shared.getConfig("tmpFtpFileName"));
                client.download("GT99_A09.rar", ff );
                client.disconnect(false);
                Shared.prepareMovements( ff );
            }else if ( mode.equals("File") ) {
                JFileChooser jfc = new JFileChooser();
                FileFilter f = new ExtensionFileFilter("Traslados de Total Pos","rar");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.