fs.symlink wrong error message #21852
Comments
It might be due to the trailing /, but I'm not an expert on this. |
Sorry for the trailing slash, it was a typo, I've edited my message. |
I might be getting this wrong, but why would it complain about the target directory? The error message seems to indicate that the source folder does not exist, even though you claim that it does. Do you get true if you do |
Assuming a exists and b does not, |
Right, can confirm that this happens in v0.12, but not in v0.10. |
The error message is incorrect indeed. |
When I run
require('fs').symlinkSync('existing/folder/path', 'bad/folder/path', 'dir')
Results in
Error: ENOENT, no such file or directory 'existing/folder/path'
Instead of
Error: ENOENT, no such file or directory 'bad/folder/path'
The text was updated successfully, but these errors were encountered: