lib/node-fs.js
function rename(oldPath, newPath, callback) {
  var oldBase = nodePath.dirname(oldPath);
  var newBase = nodePath.dirname(newPath);
  if (oldBase === newBase) {
    return nodeFs.rename(oldPath, newPath, callback);
  }
  mkdirp(nodePath.dirname(path), function (err) {
    if (err) return callback(err);
    nodeFs.rename(oldPath, newPath, callback);
  });
}
function rename(oldPath, newPath, callback) {
  var oldBase = nodePath.dirname(oldPath);
  var newBase = nodePath.dirname(newPath);
  if (oldBase === newBase) {
    return nodeFs.rename(oldPath, newPath, callback);
  }
  mkdirp(nodePath.dirname(path), function (err) {
    if (err) return callback(err);
    nodeFs.rename(oldPath, newPath, callback);
  });
}
function rename ( oldPath , newPath , callback ) { var oldBase = nodePath . dirname ( oldPath ) ; var newBase = nodePath . dirname ( newPath ) ; if ( oldBase === newBase ) { return nodeFs . rename ( oldPath , newPath , callback ) ; } mkdirp ( nodePath . dirname ( path ) , function ( err ) { if ( err ) return callback ( err ) ; nodeFs . rename ( oldPath , newPath , callback ) ; } ) ; }
Renames the given file. Creates all necessary parent directories. => undefined
Renames the given file . Creates all necessary parent directories . = > undefined