Commit 333576b9 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent c870c424
...@@ -4,9 +4,7 @@ let _ = require('lodash') ...@@ -4,9 +4,7 @@ let _ = require('lodash')
const uuid = require('uniqid') const uuid = require('uniqid')
let pairs = '' let pairs = ''
let res2 let files=[]
let res3
let res4
init() init()
...@@ -16,10 +14,11 @@ async function init() { ...@@ -16,10 +14,11 @@ async function init() {
let com = await fs.readFileSync('newCom.json', 'utf8'); let com = await fs.readFileSync('newCom.json', 'utf8');
files = await fs.readdirSync('E:\\YashilFinal')
com = JSON.parse(com) com = JSON.parse(com)
console.log(com) console.log(com)
for (let i = 0; i < com.length; i++) { for (let i = 0; i < com.length; i++) {
renamer(com[i].config,'h')
} }
...@@ -27,6 +26,15 @@ async function init() { ...@@ -27,6 +26,15 @@ async function init() {
} }
async function renamer(config,newName)
{
for (let i=0;i<files.length;i++)
{
if (files[i].includes('Lp1_'+config))
console.log(files[i])
}
}
function isUpper(str) { function isUpper(str) {
return !/[a-z]/.test(str) && /[A-Z]/.test(str); return !/[a-z]/.test(str) && /[A-Z]/.test(str);
} }
......
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