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

Method readFile

site/src/utils/tar.ts:63–68  ·  view source on GitHub ↗
(file: ArrayBuffer | Uint8Array | Blob)

Source from the content-addressed store, hash-verified

61 }
62
63 async readFile(file: ArrayBuffer | Uint8Array | Blob) {
64 this.reset();
65 this._buffer = await getArrayBuffer(file);
66 this.readFileInfo();
67 return this.fileInfo;
68 }
69
70 private readFileInfo() {
71 this.fileInfo = [];

Callers 4

getTemplateVersionFilesFunction · 0.95
initializeFileTreeFunction · 0.95
tar.test.tsFile · 0.80

Calls 3

resetMethod · 0.95
readFileInfoMethod · 0.95
getArrayBufferFunction · 0.85

Tested by

no test coverage detected