MCPcopy Create free account
hub / github.com/observablehq/framework / postDeployFile

Method postDeployFile

src/observableApiClient.ts:170–173  ·  view source on GitHub ↗
(deployId: string, filePath: string, relativePath: string)

Source from the content-addressed store, hash-verified

168 }
169
170 async postDeployFile(deployId: string, filePath: string, relativePath: string): Promise<void> {
171 const buffer = await fs.readFile(filePath);
172 return await this.postDeployFileContents(deployId, buffer, relativePath);
173 }
174
175 async postDeployFileContents(deployId: string, contents: Buffer | string, relativePath: string): Promise<void> {
176 if (typeof contents === "string") contents = Buffer.from(contents);

Callers 1

uploadFilesMethod · 0.80

Calls 2

readFileMethod · 0.80

Tested by

no test coverage detected