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

Function renameTemporaryFile

js/botasaurus-server-js/src/task-helper.ts:64–74  ·  view source on GitHub ↗
(tempFilePath: string, taskFilePathTemp: string)

Source from the content-addressed store, hash-verified

62}
63
64function renameTemporaryFile(tempFilePath: string, taskFilePathTemp: string) {
65 return new Promise((resolve, reject) => {
66 fs.rename(tempFilePath, taskFilePathTemp, (err) => {
67 if (err) {
68 // this occurs in windows, don't know why.
69 return reject(err) // Reject the promise on error
70 }
71 resolve(null)
72 })
73 })
74}
75
76export interface KeyCollectionResult {
77 allKeysMapping: any

Callers 1

moveFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected