public static function rename($path, $newpath, $cb = null, $pri = EIO_PRI_DEFAULT)
{
$cb = CallbackWrapper::forceWrap($cb);
if (!self::$supported) {
$r = rename($path, $newpath);
if ($cb) {
$cb($path, $newpath, $r);
}
return $r;
}
return eio_rename($path, $newpath, $pri, $cb, $path);
}