public static boolean downloadTo(String file, String toFile) {
		if (file.startsWith("/")) {
			file = file.substring(1);
		}
		if (toFile.startsWith("/")) {
			toFile = toFile.substring(1);
		}
		FTPClient client = connect();
		try {
			if (client == null) {
				System.out.println(
						"FTP error (if no error shown than bad login details");
				return false;
			}
			File f = Installer.getRootFile(toFile);
			if (f.getParentFile() != null) {
				f.getParentFile().mkdirs();
			}
			f.createNewFile();
			client.changeWorkingDirectory(FTPInfo.FTP_FOLDER);
			FileOutputStream out = new FileOutputStream(f);
			client.retrieveFile(file, out);
			client.disconnect();
			out.close();
			return true;
		} catch (SocketException e) {
			e.printStackTrace();
			return false;
		} catch (IOException e) {
			e.printStackTrace();
			return false;
		}
	}