Commit 0e902a77 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 8f91dfff
......@@ -13,7 +13,6 @@ async function work() {
var args = process.argv.slice(2);
dir = args[0]
let directory = await fs.readdirSync('result/' + dir)
console.log(directory)
for (let i = 0; i < directory.length; i = i + 1000) {
// console.log('hi')
let arr = []
......@@ -22,9 +21,9 @@ async function work() {
if ((j + i) < directory.length)
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) === year) {
// if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) === year) {
arr.push(directory[j + i])
}
} catch (e) {
}
......
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