kura-s3
Version:
The FileSystem API abstraction library, AWS S3 Plugin
22 lines • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.S3LocalFileSystem = void 0;
const kura_1 = require("kura");
const S3Accessor_1 = require("./S3Accessor");
class S3LocalFileSystem extends kura_1.AbstractLocalFileSystem {
constructor(config, bucket, roorDir, s3Options) {
super(s3Options);
this.config = config;
this.bucket = bucket;
this.s3Options = s3Options;
this.rootDir = kura_1.normalizePath(roorDir);
}
createAccessor() {
return new Promise((resolve) => {
const accessor = new S3Accessor_1.S3Accessor(this.config, this.bucket, this.rootDir, this.s3Options);
resolve(accessor);
});
}
}
exports.S3LocalFileSystem = S3LocalFileSystem;
//# sourceMappingURL=S3LocalFileSystem.js.map