"use strict";
// See comment in raw-url for the definition.  This is the same, but with "raw" replaced by "download".
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var raw_url_1 = require("./raw-url");
var path_1 = require("path");
var base_path_1 = __importDefault(require("lib/base-path"));
function downloadURL(id, path, relativePath) {
    return (0, path_1.join)(base_path_1.default, "share/download/".concat(id, "/").concat((0, raw_url_1.encodePath)((0, path_1.join)(path, relativePath))));
}
exports.default = downloadURL;
//# sourceMappingURL=download-url.js.map