Commit 2c3508a2 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 917f328b
......@@ -51,7 +51,7 @@ async function append(config, data) {
console.log(config + '_')
for (let i = 0; i < files.length; i++) {
if (files[i].includes(config + '_')) {
if (files[i].startsWith(config)) {
// console.log(config,files[i])
//console.log(files[i])
for (let j = 0; j < data.length; j++)
......@@ -82,7 +82,7 @@ async function remover(config, newName) {
for (let i = 0; i < files.length; i++) {
if (files[i].includes(config + '_')) {
if (files[i].startsWith(config)) {
let file = await fs.readFileSync('E:\\YashilFinal\\' + files[i], 'utf8')
file = file.split('\n')
//console.log(file)
......
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