DOC, your logic is flawed. regardless of whether it is a file or folder that exists, if either exists the file should not be copied. In fact if there is a folder by the ssame name as the file, the copy would fail!