String host = url.substring(6);
host = host.substring(0, host.indexOf("/"));
Log.debug("Insomniac: Trying to connect to remote host: " + host);
JFtp.statusP.jftp.ensureLogging();
SmbConnection con = new SmbConnection(host, user.getText().trim(),
pass.getText().trim(),
"WORKGROUP",
((ConnectionListener) JFtp.remoteDir));
Log.debug("Insomniac: Connected, downloading to: " +
Settings.defaultWorkDir);
JFtp.statusP.jftp.ensureLogging();
con.setLocalPath(dir.getText().trim());
if(con.download(url) >= 0)
{
Log.debug("Insomniac: Finished download.");
}
else
{