Skip to content

Commit 3d5e4f9

Browse files
tom-shanazatsarynnyy
authored andcommitted
fix #7240
using statSync instead of lstatSync, so isFile or isDirectory will check what the symbolic link refer to but not the link itself. Signed-off-by: tom-shan <[email protected]>
1 parent d14f7c6 commit 3d5e4f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-ext/src/main/node/plugin-deployer-entry-impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ export class PluginDeployerEntryImpl implements PluginDeployerEntry {
7272
}
7373
isFile(): boolean {
7474
try {
75-
return fs.lstatSync(this.currentPath).isFile();
75+
return fs.statSync(this.currentPath).isFile();
7676
} catch (e) {
7777
return false;
7878
}
7979
}
8080
isDirectory(): boolean {
8181
try {
82-
return fs.lstatSync(this.currentPath).isDirectory();
82+
return fs.statSync(this.currentPath).isDirectory();
8383
} catch (e) {
8484
return false;
8585
}

0 commit comments

Comments
 (0)