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