Commit 9dccbcae authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

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