diff --git a/src/server.ts b/src/server.ts index 9479ba5..21d289c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -279,7 +279,7 @@ export class BlobsServer { }) await fs.mkdir(dirname(dataPath), { recursive: true }) - await fs.rename(tempDataPath, dataPath) + await fs.copyFile(tempDataPath, dataPath) await fs.rm(tempDirectory, { force: true, recursive: true }) await fs.mkdir(dirname(metadataPath), { recursive: true })