joyent/node — Issue #2681: fs issues with symlinked directories
Author: Bonuspunkt
Created: 2012-02-03 00:51:16+00:00
State: open

Win7 x64 SP1
Node v0.6.9

var fs = require('fs');

fs.mkdirSync('dir');
fs.symlinkSync('dir', 'symDir', 'dir');
fs.lstatSync('symDir').isSymbolicLink(); // returns false -- true @ ubuntu
fs.unlinkSync('symDir'); // throws EACCES -- works @ ubuntu

workaround

fs.rmdirSync('symDir');