update io utils
This commit is contained in:
1 parent
81a88c4caa
commit
2eaa9c1bb6
3 files changed
+5
-4
No files matched your search
+2
-1
@@ -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