Skip to content

Commit e45a229

Browse files
authored
fix(scripts): replace deprecated file.path with parentPath (#211)
Node.js deprecated Dirent.path in favor of Dirent.parentPath. Update the download script to use the new property name. Signed-off-by: Kevin Cui <bh@bugs.cc>
1 parent f3b3691 commit e45a229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/download.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ for (const file of files) {
5353
continue;
5454
}
5555
if (["gvproxy", "krunkit", "ovm", "ovm.exe"].includes(file.name)) {
56-
await fsP.chmod(join(file.path, file.name), 0o755);
56+
await fsP.chmod(join(file.parentPath, file.name), 0o755);
5757
}
5858
}
5959

0 commit comments

Comments
 (0)