mv() simplified for the non-copy case
Constified function arguments. Source path is still case-insensitive, but destination is case-sensitive (hopefully that's not an issue). When a "move" (!copy) is requested, a rename() is always attempted first and if successful, job done. Otherwise, we continue on with the file-copy (and then remove). This should resolve CID 332219 (DEADCODE).
Showing with 10 additions and 16 deletions