AlkantarClanX12

Your IP : 18.119.108.233


Current Path : /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/utils/
Upload File :
Current File : //opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/utils/rename.js

'use strict'
var fs = require('graceful-fs')
var SaveStack = require('./save-stack.js')

module.exports = rename

function rename (from, to, cb) {
  var saved = new SaveStack(rename)
  fs.rename(from, to, function (er) {
    if (er) {
      return cb(saved.completeWith(er))
    } else {
      return cb()
    }
  })
}