Prevented moving the file onto itself.