|
@ -12,7 +12,11 @@ function copyFileSync (srcFile, destFile, options) { |
|
|
fs.chmodSync(destFile, parseInt('777', 8)) |
|
|
fs.chmodSync(destFile, parseInt('777', 8)) |
|
|
fs.unlinkSync(destFile) |
|
|
fs.unlinkSync(destFile) |
|
|
} else { |
|
|
} else { |
|
|
throw Error('EEXIST') |
|
|
var err = new Error('EEXIST: ' + destFile + ' already exists.') |
|
|
|
|
|
err.code = 'EEXIST' |
|
|
|
|
|
err.errno = -17 |
|
|
|
|
|
err.path = destFile |
|
|
|
|
|
throw err |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|