First try file.rename(). If it fails (e.g., renaming a file from one volume
to another on disk is likely to fail), try file.copy() instead, and clean
up the original files if the copy succeeds.
First try file.rename(). If it fails (e.g., renaming a file from one volume
to another on disk is likely to fail), try file.copy() instead, and clean
up the original files if the copy succeeds.