kura-s3
Version:
The FileSystem API abstraction library, AWS S3 Plugin
21 lines • 518 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrefix = exports.getKey = void 0;
const kura_1 = require("kura");
function getKey(fullPath) {
let key = "";
if (0 < fullPath.length) {
key = fullPath.substr(1);
}
return key;
}
exports.getKey = getKey;
function getPrefix(fullPath) {
let key = getKey(fullPath);
if (key) {
key += kura_1.DIR_SEPARATOR;
}
return key;
}
exports.getPrefix = getPrefix;
//# sourceMappingURL=S3Util.js.map