Skip to content

Commit 25b96b6

Browse files
author
Benjamin Pasero
committed
mv - do not futimes on symbolic links
1 parent ff611c5 commit 25b96b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/node/extfs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ export function mv(source: string, target: string, callback: (error: Error | nul
304304
return callback(err);
305305
}
306306

307-
fs.stat(target, (error, stat) => {
307+
fs.lstat(target, (error, stat) => {
308308
if (error) {
309309
return callback(error);
310310
}
311311

312-
if (stat.isDirectory()) {
312+
if (stat.isDirectory() || stat.isSymbolicLink()) {
313313
return callback(null);
314314
}
315315

0 commit comments

Comments
 (0)