Skip to content

Commit 5dba53d

Browse files
committed
fixup! fs: use throwIfNoEntry option on statSync calls
1 parent 131de56 commit 5dba53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ function symlink(target, path, type_, callback_) {
12161216
function symlinkSync(target, path, type) {
12171217
type = (typeof type === 'string' ? type : null);
12181218
if (isWindows && type === null) {
1219-
const absoluteTarget = pathModule.resolve(path, '..', target);
1219+
const absoluteTarget = pathModule.resolve(`${path}`, '..', `${target}`);
12201220
if (statSync(absoluteTarget, { throwIfNoEntry: false })?.isDirectory()) {
12211221
type = 'dir';
12221222
}

0 commit comments

Comments
 (0)