'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function getCosUrlLink(_ref) {
  var bucket = _ref.bucket,
    region = _ref.region,
    dir = _ref.dir,
    fileName = _ref.fileName;
  var dirDesc = dir ? "".concat(dir, "/") : '';
  return "https://".concat(bucket, ".cos.").concat(region, ".myqcloud.com/").concat(dirDesc).concat(fileName);
}

exports.getCosUrlLink = getCosUrlLink;
