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 .
Check if file exists in output folder