sakaiproject/Hilary — pull request #272 by stuartf (2012-12-04 15:51:06+00:00)
Title: Fall back to copy and remove if rename fails due to EXDEV

fs.rename doesn't work across partitions, this tries rename first then copies and deletes if it sees that the rename failed for that reason.