code: 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);
    });
  }
docs: Renames the given file. Creates all necessary parent directories. => undefined