src/copy.js
function getSourceDestinationPath (srcPath) {
        let dests = _.keys(options.files);
        return _.find(dests, function (destPath) {
            let paths = options.files[destPath];
            return _.find(paths, function (p) {
                return p === srcPath || srcPath.indexOf(p) !== -1;
            });
        });
    }
function getSourceDestinationPath (srcPath) {
        let dests = _.keys(options.files);
        return _.find(dests, function (destPath) {
            let paths = options.files[destPath];
            return _.find(paths, function (p) {
                return p === srcPath || srcPath.indexOf(p) !== -1;
            });
        });
    }
function getSourceDestinationPath ( srcPath ) { let dests = _ . keys ( options . files ) ; return _ . find ( dests , function ( destPath ) { let paths = options . files [ destPath ] ; return _ . find ( paths , function ( p ) { return p === srcPath || srcPath . indexOf ( p ) !== - 1 ; } ) ; } ) ; }
Gets the destination path for a source file.
@param srcPath
@returns {string} Returns the matching destination path
Gets the destination path for a source file .