From ae3ac0db0c7e3c5ca0f023216104ab54def90d80 Mon Sep 17 00:00:00 2001 From: Salman Muin Kayser Chishti Date: Wed, 15 Oct 2025 17:25:34 +0100 Subject: [PATCH] change back to lstat --- packages/io/src/io-util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/io/src/io-util.ts b/packages/io/src/io-util.ts index 7cd42b8f..67bae805 100644 --- a/packages/io/src/io-util.ts +++ b/packages/io/src/io-util.ts @@ -28,8 +28,7 @@ export async function readlink(fsPath: string): Promise { // Only on Windows, ensure directory symlinks end with a backslash if (IS_WINDOWS) { try { - // Use stat on the target to check if it's a directory (result is already resolved) - const stats = await fs.promises.stat(result) + const stats = await fs.promises.lstat(result) if (stats.isDirectory() && !result.endsWith('\\')) { return `${result}\\` }