mirror of
https://github.com/actions/toolkit.git
synced 2026-08-21 00:00:16 +02:00
Try close stream before unlink
This commit is contained in:
@@ -223,6 +223,7 @@ export class DownloadHttpClient {
|
|||||||
const resetDestinationStream = async (
|
const resetDestinationStream = async (
|
||||||
fileDownloadPath: string
|
fileDownloadPath: string
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
|
destinationStream.close()
|
||||||
await rmFile(fileDownloadPath)
|
await rmFile(fileDownloadPath)
|
||||||
destinationStream = fs.createWriteStream(fileDownloadPath)
|
destinationStream = fs.createWriteStream(fileDownloadPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user