提交 25b96b66 编写于 作者: B Benjamin Pasero

mv - do not futimes on symbolic links

上级 ff611c53
......@@ -304,12 +304,12 @@ export function mv(source: string, target: string, callback: (error: Error | nul
return callback(err);
}
fs.stat(target, (error, stat) => {
fs.lstat(target, (error, stat) => {
if (error) {
return callback(error);
}
if (stat.isDirectory()) {
if (stat.isDirectory() || stat.isSymbolicLink()) {
return callback(null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册