Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erik Römmelt 5d28bc36e1 node_modules updated, buefy add to lib folder 5 years ago
..
node_modules node_modules updated, buefy add to lib folder 5 years ago
test node_modules updated, buefy add to lib folder 5 years ago
.npmignore node_modules updated, buefy add to lib folder 5 years ago
.travis.yml node_modules updated, buefy add to lib folder 5 years ago
LICENSE node_modules updated, buefy add to lib folder 5 years ago
README.md node_modules updated, buefy add to lib folder 5 years ago
index.js node_modules updated, buefy add to lib folder 5 years ago
package.json node_modules updated, buefy add to lib folder 5 years ago

README.md

Build Status

Usage:

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

Another example:

mv('source/dir', 'dest/a/b/c/dir', {mkdirp: true}, function(err) {
  // done. it first created all the necessary directories, and then
  // tried fs.rename, then falls back to using ncp to copy the dir
  // to dest and then rimraf to remove the source dir
});

Another example:

mv('source/file', 'dest/file', {clobber: false}, function(err) {
  // done. If 'dest/file' exists, an error is returned
  // with err.code === 'EEXIST'.
});