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

Function doCopyFile

js/botasaurus-server-js/src/writer.ts:208–218  ·  view source on GitHub ↗
(fromPath: string, toPath: string)

Source from the content-addressed store, hash-verified

206}
207
208export function doCopyFile(fromPath: string, toPath: string): Promise<void> {
209 return new Promise((resolve, reject) => {
210 copyFile(fromPath, toPath, (copyErr: any) => {
211 if (copyErr) {
212 reject(copyErr);
213 } else {
214 resolve();
215 }
216 });
217 });
218}
219
220async function writeNdjson(inputFilePath: string, filename: string): Promise<string> {
221 try {

Callers 3

copyTaskToCachedTaskMethod · 0.90
cloneTaskFromCacheKeyMethod · 0.90
writeNdjsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected