move.js 290 B

123456789101112
  1. 'use strict'
  2. module.exports = wrappedMove
  3. const fs = require('graceful-fs')
  4. const move = require('move-concurrently')
  5. const Bluebird = require('bluebird')
  6. const options = {fs: fs, Promise: Bluebird, maxConcurrency: 4}
  7. function wrappedMove (from, to) {
  8. return move(from, to, options)
  9. }