Update api.md with what happens when you overwrite a directory