Update archive.js

This commit is contained in:
Namhyeon Go 2024-11-29 16:54:53 +09:00
parent 701be4c351
commit caa56cedb8

View File

@ -15,11 +15,13 @@ function ArchiveObject(engine) {
this.setReadFormat = function(readFormat) {
this.readFormat = readFormat;
return this;
};
this.setWriteFormat = function(writeFormat) {
this.writeFormat = writeFormat;
return this;
};
@ -96,6 +98,7 @@ function ArchiveObject(engine) {
this.addFile = function(file) {
this.patterns.push(file);
return this;
};
@ -104,6 +107,8 @@ function ArchiveObject(engine) {
if (typeof engine === "undefined") {
this.setEngine("cabinet");
};
return this;
};
this.create();