I use the fs
module to create symlinks.
fs.symlink("target", "path/to/symlink", function (e) {
if (e) { ... }
});
If the path/to/symlink
already exists, an error is sent in the callback.
How can I force symlink creation and override the existing symlink?
Is there another alternative than check error + delete existing symlink + try again
?
ln -f
but, I don't want to. I want to use the file system api. – Genocidefs
", then the answer is no :-) – Easily