Place the unique name constraint on both files and folders.
Added a test for pasting from clipboard to a folder and checking that duplicate file names are not allowed.