Commit 917f328b authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 772ca708
...@@ -48,10 +48,11 @@ await renamer(com[i].config,com[i].uniq) ...@@ -48,10 +48,11 @@ await renamer(com[i].config,com[i].uniq)
} }
async function append(config, data) { async function append(config, data) {
console.log(config + '_')
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
if (files[i].includes(config + '_')) { if (files[i].includes(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++)
appender(files[i], data[j]) appender(files[i], data[j])
...@@ -60,7 +61,7 @@ async function append(config, data) { ...@@ -60,7 +61,7 @@ async function append(config, data) {
} }
async function appender(file, data) { async function appender(file, data) {
console.log(data) //console.log(data)
fs.appendFile('E:\\YashilFinal\\' + file, data + '\n', function (err) { fs.appendFile('E:\\YashilFinal\\' + file, data + '\n', function (err) {
if (err) throw err; if (err) throw err;
......
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