Browse Source

watcher

master
zeus 4 years ago
parent
commit
88ff454499
  1. 4
      swarmlab-app/src/run/app.js

4
swarmlab-app/src/run/app.js

@ -197,9 +197,7 @@ global.online='ob';
console.log('File', path, 'has been added'); console.log('File', path, 'has been added');
var pathfileval = pathmodule.basename(path); var pathfileval = pathmodule.basename(path);
console.log('Filepath1 ', pathfileval, ' check'); console.log('Filepath1 ', pathfileval, ' check');
var arrfile = pathfileval.split("-").map(function (val) { var arrfile = str.toString().split("-");
return Number(val) + 1;
});
var pathfile = arrfile[0]; var pathfile = arrfile[0];
console.log('Filepath ', pathfile, ' check'); console.log('Filepath ', pathfile, ' check');
// /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log // /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log

Loading…
Cancel
Save