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

git pu

parent 13a591b3
...@@ -16,12 +16,13 @@ let datas = [ ...@@ -16,12 +16,13 @@ let datas = [
] ]
run() run()
async function run() { async function run() {
let files = await fs.readdirSync(path) let files = await fs.readdirSync(path)
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
if (!files[i].includes('Lp1') || !files[i].includes('Lp2') || !files[i].includes('Lp3') || !files[i].includes('Lp4') || !files[i].includes('Lp5') || !files[i].includes('Lp6')) if (!files[i].includes('Lp') )
continue continue
...@@ -86,7 +87,7 @@ async function checker() { ...@@ -86,7 +87,7 @@ async function checker() {
let files = await fs.readdirSync(path) let files = await fs.readdirSync(path)
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
console.log(files[i]) console.log(files[i])
if (!files[i].includes('Lp1') || !files[i].includes('Lp2') || !files[i].includes('Lp3') || !files[i].includes('Lp4') || !files[i].includes('Lp5') || !files[i].includes('Lp6')) if (!files[i].includes('Lp'))
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