getpelican/pelican — pull request #664 by wking (2013-01-04 12:31:22+00:00)
Title: utils: Teach mkdir_p to fail if the existing target isn't a directory

Existing symlinks to directories will still pass, because isdir() follows
symbolic links.