mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
closes #5721
This commit is contained in:
@@ -152,7 +152,17 @@ module.exports = function (Meta) {
|
||||
return file.linkDirs(srcPath, destPath, next);
|
||||
}
|
||||
|
||||
file.link(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);
|
||||
}
|
||||
});
|
||||
}, callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user