Append a number to the file/directory if destination contains the same target
Handle copy specifically for directories and files to avoid errors