behavior of directory renames


Can anyone confirm or deny that an IRP_SET_INFORMATION/FileRenameInformation
will always fail when:

a) the file being renamed is a directory AND
b) the destination directory entry exists (whether or not it has any
children, and whether or not on overwrite is indicated)

I’m testing the behavior with Win32 MoveFileEx. I’m not sure
whether this idiosyncrasy is in MoveFileEx or is expected behavior for a
file system driver. My assumption was that as long as the overwrite flag is
set and the destination directory has no sub-entries, that the rename would
succeed, but my experiment is not bearing this out.