On Friday, June 15, 2012 9:50:53 AM UTC-7, Jeffrey Zhao wrote: > > I got an “unknown error” from fs.rmdirSync method, what does that mean? > I can remove the folder by “rm –r” command in shell. I removed all the > files in the folder but still got the same error: >
New to the list so I didn't jump in right away, but no one else has mentioned the one thing I see wrong with this. I don't know about why the error is unknown, but rmdirSync calls the OS's rmdir(2), which is not analogous to "rm -r" but rather the rmdir command, the difference being, rmdir only removes an empty directory, "rm -r" is a recursive delete, first emptying the directory, then deleting the directory itself. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
