|
Main
One-sentence summary of this page.
Welcome to GrooveItFTPGrooveItFTP is very simple and easy-to-use. Please refer to below download URL. http://code.google.com/p/grooveit-ftp/downloads/list Features
Sample Codeimport org.grooveit.ftp.GrooveItFTP;
import java.io.File;
import java.io.IOException;
public class SampleFtpClient {
public static void main(String[] args) throws IOException{
GrooveItFTP ftp = new GrooveItFTP();
ftp.connect(host, port, userid, password);
ftp.pwd(); //See the current directory.
ftp.cwd(dir); //Change Directory.
ftp.mkdir(dir); //Make Directory.
ftp.rmdir(dir); //Remove Directory.
ftp.put(file); //File upload.
ftp.disconnect(); //Disconnection.
}
}
|
Sign in to add a comment