Commit e1b30446 authored by Giacomo Lavermicocca's avatar Giacomo Lavermicocca

file addes

parent 69b6e7f2
var client = require('scp2');
function startHere() {
console.log("Sono passato di qua...");
client.scp('/root/.config/transmission-daemon/torrents/', 'root:viabadia1982!@10.8.0.10:8022:/mnt1/stuff/Downloads/torrentWatch/', function(err) {console.log(err);})
}
startHere();
setInterval(startHere, 60000);
\ No newline at end of file
......@@ -11,11 +11,11 @@ function getFiles(request, response) {
diretoryTreeToObj(dirTree, function (err, res) {
if (err)
console.error(err);
var list = JSON.stringify(res);
var obj = { "currentDir" : dirTree, "list" : list };
console.log(JSON.stringify(res));
response.send(JSON.stringify(res));
response.send(JSON.stringify(obj));
});
}
/* serves all the static files */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment