(name: string, opts?: Partial<ITarWriteOptions>)
| 197 | } |
| 198 | |
| 199 | addFolder(name: string, opts?: Partial<ITarWriteOptions>) { |
| 200 | this.fileData.push({ |
| 201 | name, |
| 202 | type: TarFileTypeCodes.Dir, |
| 203 | data: null, |
| 204 | size: 0, |
| 205 | opts, |
| 206 | }); |
| 207 | } |
| 208 | |
| 209 | private createBuffer() { |
| 210 | const dataSize = this.fileData.reduce( |
no test coverage detected