};
var nsqueue = false;
- this.nsdownloadNext = function(pg)
+ this.nsdownloadNext = function()
{
/*if (nsqueue === false) {
nsqueue = [
}
var pg = nsqueue.shift() ;
- if ( File.exists( storedir+'/output/' + pg + '.csv')) {
- this.nsdownloadNext();
- return;
- }
+
*/
//print(typeof(Seed.argv[2]));
}
var pg = Seed.argv[2] * 1;
-
+ if ( File.exists( storedir+'/output/' + pg + '.csv')) {
+ print("DONE : " + storedir+'/output/' + pg + '.csv');
+ Seed.exit();
+ return;
+ }
var pd = JSON.parse(File.read('/home/alan/.nspasswd'));