The best option would be not to put files directly on the desktop, but keep them in separate folders (Libraries like My Documents, My Pictures etc), and for most frequently used files, keep shortcuts of them on the desktop.
This will save your actual files from accidents like this. All you loose are the shortcuts but the files remain safe.