public static void main(String[] args) {
		String server = "polaris";
		int port = 35088;
		String user = "ftp";
		String pass = "ftp";

		if (args != null) {
			if (args.length >= 1) {
				server = args[0];
			}
			if (args.length >= 2) {
				try {
					port = Integer.parseInt(args[1]);
				} catch (Exception e) {
				}
			}

			if (args.length >= 3) {
				user = args[2];
			}
			if (args.length >= 4) {
				pass = args[3];
			}
		}
		FTPClient client = new FTPClient(server, port, user, pass);
		try {
			// client.setPassiveMode(false);
			// client.setSecureMode(true);
			client.openConnection();
			// client.noop();
			// client.help();
			client.list();
			// client.printWorkingDir();
			// client.list();
			// client.changeDirUp();
			// test();
		} catch (Exception e) {
			System.err.println(e.getClass().getName() + e.getMessage());
		} finally {
			try {
				client.quit();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}

	}