> is everything fine if the directory already exists, presumably not?

We don't know for sure because we don't know exactly which files there are, so it's safer to raise an error.

>  The error message sounds like the directory is overwritten.

Well that's what would happen if it were not for the error