Commit 2964010f authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 66304514
...@@ -30,26 +30,27 @@ async function renamer(config,newName) ...@@ -30,26 +30,27 @@ async function renamer(config,newName)
{ {
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+'_'))
// { {
// 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')
// let arr=[] console.log(file)
// for (let j=0;j<file.length-1;j++) let arr=[]
// arr.push(file[j]) for (let j=0;j<file.length-1;j++)
// // console.log(arr) arr.push(file[j])
// let t='' // console.log(arr)
// for (let j=0;j<arr.length;j++) { let t=''
// t = t + arr[j] for (let j=0;j<arr.length;j++) {
// if (j !==arr.length-1) t = t + arr[j]
// t=t+'\n' if (j !==arr.length-1)
// } t=t+'\n'
// createYAshil(files[i],t) }
// createYAshil(files[i],t)
//
// }
if (files[i].includes('Lp1_'+config)) }
await fs.renameSync('E:\\YashilFinal\\'+files[i],'E:\\YashilFinal\\'+config+'_'+newName+'.csv' ) // if (files[i].includes('Lp1_'+config))
// await fs.renameSync('E:\\YashilFinal\\'+files[i],'E:\\YashilFinal\\'+config+'_'+newName+'.csv' )
} }
} }
......
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