mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update archive.js
This commit is contained in:
parent
701be4c351
commit
caa56cedb8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user