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

                    return fs.exists(filePath);
                });
            }
function(fileName, content) {
                return Promise()
                .then(function() {
                    var filePath = PathUtils.resolveInRoot(outputFolder, fileName);

                    return fs.exists(filePath);
                });
            }
function ( fileName , content ) { return Promise ( ) . then ( function ( ) { var filePath = PathUtils . resolveInRoot ( outputFolder , fileName ) ; return fs . exists ( filePath ) ; } ) ; }
Check that a file exists.

@param {String} fileName
@return {Promise}
Check that a file exists .