Like `fs.rename`, but works across devices, and works with directories. Think of the unix utility `mv`.
JavaScript
Usage:
varmv;mv=require('mv');mv('source/file','dest/file',function(err){// done. it tried fs.rename first, and then falls back to// piping the source file to the dest file and then unlinking// the source file.});