substack/node-mkdirp — pull request #10 by isaacs (2011-11-06 04:48:46+00:00)
Title: clobber on ENOTDIR, chmod if already exists

So, this is basically a rewrite of the whole "thing that does stuff" part of mkdirp. I usually find that to be a bit presumptuous, but the fact is that mkdirp was tight enough that it was hard to make any significant change without completely altering it.

Tests added, as well.