mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
closes #5721
This commit is contained in:
@@ -152,7 +152,17 @@ module.exports = function (Meta) {
|
|||||||
return file.linkDirs(srcPath, destPath, next);
|
return file.linkDirs(srcPath, destPath, next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
fs.readFile(srcPath, function (err, file) {
|
||||||
|
if (err) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.writeFile(destPath, file, next);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
file.link(srcPath, destPath, next);
|
file.link(srcPath, destPath, next);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, callback);
|
}, callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user