MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / file

Method file

src/pkg/utils/jszip-x.ts:84–90  ·  view source on GitHub ↗
(path: string, content?: ZipEntryData, options?: JSZipFileOptions)

Source from the content-addressed store, hash-verified

82 file(path: string, content: ZipEntryData, options?: JSZipFileOptions): this;
83
84 file(path: string, content?: ZipEntryData, options?: JSZipFileOptions): JSZippZipObject | this | null {
85 if (content === undefined) {
86 return this.files[path] || null;
87 }
88 this.files[path] = new JSZippZipObject(path, content, options?.date);
89 return this;
90 }
91
92 remove(path: string) {
93 delete this.files[path];

Callers 4

exportCloudMethod · 0.80
openMethod · 0.80
writeMethod · 0.80
createTestZipFunction · 0.80

Calls

no outgoing calls

Tested by 1

createTestZipFunction · 0.64