Commit 3eedb742 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 7198d319
......@@ -48,17 +48,14 @@ async function check()
for (let i=0;i<files.length;i++)
{
if (!files[i].includes('csv'))
{
// await fs.renameSync('files/'+files[i],worker+'/'+files[i])
if (!files[i].includes('csv')) {
await fs.renameSync('files/'+files[i],worker+'/'+files[i])
continue
}
let stats=await fs.statSync('files/'+files[i])
if (stats.size<500)
{
if (stats.size<500) {
await fs.renameSync('files/'+files[i],worker+'/'+files[i])
continue
}
......@@ -70,7 +67,7 @@ async function check()
if (worker !==null)
{
await fs.renameSync('files/'+files[i],worker+'/'+files[i])
await makeStatusNew(worker,'1')
shell.exec('node run.js '+worker, {async: true});
}
......
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