MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / writeFileResponse

Function writeFileResponse

js/botasaurus-desktop-api/src/utils.ts:71–76  ·  view source on GitHub ↗
(filePath: string, filename: string, content: Buffer)

Source from the content-addressed store, hash-verified

69}
70
71function writeFileResponse(filePath: string, filename: string, content: Buffer): string {
72 createOutputDirectoryIfNotExists();
73 const fullPath = path.join(filePath, filename);
74 fs.writeFileSync(fullPath, content);
75 return fullPath;
76}
77
78export {
79 removeAfterFirstSlash,

Callers 1

downloadTaskResultsMethod · 0.90

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected