mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-21 21:08:05 +08:00
.
This commit is contained in:
@@ -348,7 +348,8 @@ describe('rmRF', () => {
|
|||||||
|
|
||||||
// can't remove folder with locked file on windows
|
// can't remove folder with locked file on windows
|
||||||
if (ioUtil.IS_WINDOWS) {
|
if (ioUtil.IS_WINDOWS) {
|
||||||
await assertExists(testPath)
|
// additionally, can't stat an open file on Windows without getting EPERM
|
||||||
|
await ioUtil.access(filePath)
|
||||||
} else {
|
} else {
|
||||||
await assertNotExists(testPath)
|
await assertNotExists(testPath)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import * as fs from 'fs'
|
|||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
|
access,
|
||||||
chmod,
|
chmod,
|
||||||
copyFile,
|
copyFile,
|
||||||
lstat,
|
lstat,
|
||||||
|
|||||||
Reference in New Issue
Block a user