public function rename($path_from, $path_to) { $this->unwrap(); if (isset($this->context)) { $result = rename($path_from, $path_to, $this->context); } else { $result = rename($path_from, $path_to); } $this->wrap(); return $result; }