MCPcopy Index your code
hub / github.com/coder/coder / addFolder

Method addFolder

site/src/utils/tar.ts:199–207  ·  view source on GitHub ↗
(name: string, opts?: Partial<ITarWriteOptions>)

Source from the content-addressed store, hash-verified

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(

Callers 3

generateVersionFilesFunction · 0.95
tar.test.tsFile · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected