window.open(encode(path));
}
+function download(entry) {
+ if (entry.isDirectory) return;
+
+ window.location.href = encode('/api/files/' + sanitize(app.path + '/' + entry.filePath)) + '?access_token=' + localStorage.accessToken;
+}
+
function up() {
window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'));
}
logout: logout,
loadDirectory: loadDirectory,
open: open,
+ download: download,
up: up,
upload: upload,
delAsk: delAsk,