lib/api/encodeGlobal.js
function(inputFile, outputFile, content) {
                return Promise()
                .then(function() {
                    var outputFilePath = PathUtils.resolveInRoot(outputFolder, outputFile);

                    return fs.ensureFile(outputFilePath)
                    .then(function() {
                        return fs.copy(inputFile, outputFilePath);
                    });
                });
            }
function(inputFile, outputFile, content) {
                return Promise()
                .then(function() {
                    var outputFilePath = PathUtils.resolveInRoot(outputFolder, outputFile);

                    return fs.ensureFile(outputFilePath)
                    .then(function() {
                        return fs.copy(inputFile, outputFilePath);
                    });
                });
            }
function ( inputFile , outputFile , content ) { return Promise ( ) . then ( function ( ) { var outputFilePath = PathUtils . resolveInRoot ( outputFolder , outputFile ) ; return fs . ensureFile ( outputFilePath ) . then ( function ( ) { return fs . copy ( inputFile , outputFilePath ) ; } ) ; } ) ; }
Copy a file to the output folder
It creates the required folder.

@param {String} inputFile
@param {String} outputFile
@param {Buffer} content
@return {Promise}
Copy a file to the output folder It creates the required folder .