Commit 5e482336 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent d5a1ef0f
...@@ -40,9 +40,12 @@ function makeStatus(directory) { ...@@ -40,9 +40,12 @@ function makeStatus(directory) {
async function check() { async function check() {
let files = await fs.readdirSync('allFiles') let files = await fs.readdirSync('allFiles')
if (files.length ===0)
process.exit(0)
let size = await fs.read let size = await fs.read
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
if (!files[i].includes('csv')) { if (!files[i].includes('csv')) {
await fs.unlinkSync('allFiles/' + files[i]) await fs.unlinkSync('allFiles/' + files[i])
continue continue
......
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