/node-mv

Like `fs.rename`, but works across devices, and works with directories. Think of the unix utility `mv`.

Primary LanguageJavaScript

Build Status

Usage:

var mv;

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.
});