mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
rmDuplicates removed duplicate removed count log
This commit is contained in:
parent
742f8866c7
commit
7c55407e0b
1 changed files with 0 additions and 3 deletions
|
@ -121,7 +121,6 @@ function removePossibleAnswersDuplicates(path) {
|
||||||
count++
|
count++
|
||||||
})
|
})
|
||||||
|
|
||||||
let removed = 0
|
|
||||||
dirs.forEach((currDir) => {
|
dirs.forEach((currDir) => {
|
||||||
const contents = fs.readdirSync(path + '/' + currDir)
|
const contents = fs.readdirSync(path + '/' + currDir)
|
||||||
|
|
||||||
|
@ -163,7 +162,6 @@ function removePossibleAnswersDuplicates(path) {
|
||||||
utils.deleteFile(currPath2)
|
utils.deleteFile(currPath2)
|
||||||
count--
|
count--
|
||||||
delets++
|
delets++
|
||||||
removed++
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -171,7 +169,6 @@ function removePossibleAnswersDuplicates(path) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
log(`Removed ${C('red')}${removed}${C()} files total`)
|
|
||||||
|
|
||||||
log(`${C('green')}Deleting empty directories ...${C()}`)
|
log(`${C('green')}Deleting empty directories ...${C()}`)
|
||||||
count = dirs.length
|
count = dirs.length
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue