function (parsedPath, fls) {
        // parsedPath.dir, parsedPath.base, parsedPath.ext, parsedPath.name
        var newName = "";
        var fileConfigs = "";
        var folderDirArray = getNestedFolderName(parsedPath);
        parsedPath['folderName'] = utils.getBaseFolderName(parsedPath.dir) != tempFolderName ? utils.getBaseFolderName(parsedPath.dir) : "";
        //fileConfigs = parsedPath.folderName ? fls.replaceFileName[parsedPath.folderName][parsedPath.base] : fls.replaceFileName[parsedPath.base];
        if (folderDirArray == "base" && fls.replaceFileName[parsedPath.base]) {
            fileConfigs = fls.replaceFileName[parsedPath.base];
        } else if (Array.isArray(folderDirArray)) {
            var replaceFileNameArray = fls.replaceFileName;
            for (var i in folderDirArray) {
                if (replaceFileNameArray[folderDirArray[i]] && Object.keys(replaceFileNameArray[folderDirArray[i]]).length > 0) {
                    replaceFileNameArray = replaceFileNameArray[folderDirArray[i]];
                } else {
                    replaceFileNameArray = [];
                    break;
                }
            }
            if (replaceFileNameArray && replaceFileNameArray[parsedPath.base]) {
                fileConfigs = replaceFileNameArray[parsedPath.base];
            } else {
                fileConfigs = [];
            }
        } else {
            fileConfigs = []
        }
        console.log(":::~~Configurations from replaceFileName~~:::" +fileConfigs);
        newName = utils.getupdatedFileName(parsedPath.name, fileConfigs, fls.input);
        parsedPath.base = newName + parsedPath.ext;
        parsedPath.name = newName;
        return parsedPath;
    }
function (parsedPath, fls) {
        // parsedPath.dir, parsedPath.base, parsedPath.ext, parsedPath.name
        var newName = "";
        var fileConfigs = "";
        var folderDirArray = getNestedFolderName(parsedPath);
        parsedPath['folderName'] = utils.getBaseFolderName(parsedPath.dir) != tempFolderName ? utils.getBaseFolderName(parsedPath.dir) : "";
        //fileConfigs = parsedPath.folderName ? fls.replaceFileName[parsedPath.folderName][parsedPath.base] : fls.replaceFileName[parsedPath.base];
        if (folderDirArray == "base" && fls.replaceFileName[parsedPath.base]) {
            fileConfigs = fls.replaceFileName[parsedPath.base];
        } else if (Array.isArray(folderDirArray)) {
            var replaceFileNameArray = fls.replaceFileName;
            for (var i in folderDirArray) {
                if (replaceFileNameArray[folderDirArray[i]] && Object.keys(replaceFileNameArray[folderDirArray[i]]).length > 0) {
                    replaceFileNameArray = replaceFileNameArray[folderDirArray[i]];
                } else {
                    replaceFileNameArray = [];
                    break;
                }
            }
            if (replaceFileNameArray && replaceFileNameArray[parsedPath.base]) {
                fileConfigs = replaceFileNameArray[parsedPath.base];
            } else {
                fileConfigs = [];
            }
        } else {
            fileConfigs = []
        }
        console.log(":::~~Configurations from replaceFileName~~:::" +fileConfigs);
        newName = utils.getupdatedFileName(parsedPath.name, fileConfigs, fls.input);
        parsedPath.base = newName + parsedPath.ext;
        parsedPath.name = newName;
        return parsedPath;
    }
function ( parsedPath , fls ) { // parsedPath.dir, parsedPath.base, parsedPath.ext, parsedPath.name var newName = "" ; var fileConfigs = "" ; var folderDirArray = getNestedFolderName ( parsedPath ) ; parsedPath [ 'folderName' ] = utils . getBaseFolderName ( parsedPath . dir ) != tempFolderName ? utils . getBaseFolderName ( parsedPath . dir ) : "" ; //fileConfigs = parsedPath.folderName ? fls.replaceFileName[parsedPath.folderName][parsedPath.base] : fls.replaceFileName[parsedPath.base]; if ( folderDirArray == "base" && fls . replaceFileName [ parsedPath . base ] ) { fileConfigs = fls . replaceFileName [ parsedPath . base ] ; } else if ( Array . isArray ( folderDirArray ) ) { var replaceFileNameArray = fls . replaceFileName ; for ( var i in folderDirArray ) { if ( replaceFileNameArray [ folderDirArray [ i ] ] && Object . keys ( replaceFileNameArray [ folderDirArray [ i ] ] ) . length > 0 ) { replaceFileNameArray = replaceFileNameArray [ folderDirArray [ i ] ] ; } else { replaceFileNameArray = [ ] ; break ; } } if ( replaceFileNameArray && replaceFileNameArray [ parsedPath . base ] ) { fileConfigs = replaceFileNameArray [ parsedPath . base ] ; } else { fileConfigs = [ ] ; } } else { fileConfigs = [ ] } console . log ( ":::~~Configurations from replaceFileName~~:::" + fileConfigs ) ; newName = utils . getupdatedFileName ( parsedPath . name , fileConfigs , fls . input ) ; parsedPath . base = newName + parsedPath . ext ; parsedPath . name = newName ; return parsedPath ; }
update refrence directory files names as per config provided by replaceFileName key
@param {*} parsedPath
@param {*} fls
update refrence directory files names as per config provided by replaceFileName key