Commit c235ee82 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 333576b9
......@@ -18,7 +18,7 @@ async function init() {
com = JSON.parse(com)
console.log(com)
for (let i = 0; i < com.length; i++) {
renamer(com[i].config,'h')
renamer(com[i].config,com[i].uniq)
}
......@@ -31,7 +31,7 @@ async function renamer(config,newName)
for (let i=0;i<files.length;i++)
{
if (files[i].includes('Lp1_'+config))
console.log(files[i])
await fs.renameSync('E:\\YashilFinal\\'+files[i],'E:\\YashilFinal\\'+config+'_'+newName )
}
}
......
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