blob: 24455e3ba82927b55b5596814e72547ff22d6ec4 [file]
$(document).ready(function () {
FTPUI.handleLocalButtons();
// the page will be updated to take user input (i.e host, port, username, password)
var client = new FTPSession("ftp.mozilla.org", 21);
client.login("", "").then(function (welcomeMsg) {
client.listDir().then(function (listDir) {
FTPUI.createRemoteDir(client, listDir);
FTPUI.handleRemoteBackButton();
FTPUI.handleDownload();
}).catch(function (error) {
// listDir error handling
console.log(error);
});
}).catch(function (error) {
console.log("Caught login error", error);
});
});