update io utils
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@actions/io",
|
||||
"version": "1.1.3",
|
||||
"version": "2.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@actions/io",
|
||||
"version": "1.1.3",
|
||||
"version": "2.0.0",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@actions/io",
|
||||
"version": "1.1.3",
|
||||
"version": "2.0.0",
|
||||
"description": "Actions io lib",
|
||||
"keywords": [
|
||||
"github",
|
||||
|
||||
@@ -28,7 +28,8 @@ export async function readlink(fsPath: string): Promise<string> {
|
||||
// Only on Windows, ensure directory symlinks end with a backslash
|
||||
if (IS_WINDOWS) {
|
||||
try {
|
||||
const stats = await fs.promises.lstat(result)
|
||||
// Use stat on the target to check if it's a directory (result is already resolved)
|
||||
const stats = await fs.promises.stat(result)
|
||||
if (stats.isDirectory() && !result.endsWith('\\')) {
|
||||
return `${result}\\`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user