substack/node-mkdirp — Issue #8: go all stabby on ENOTDIR errors
Author: isaacs
Created: 2011-11-03 22:42:24+00:00
State: open

If the error is an ENOTDIR, then unlink the thing that's in the way, and mkdir on through.