/**
  * Change directory
  *
  * @access public
  *
  * @param string $dir The new current directory.
  * @return bool Returns true on success or false on failure.
  */
 public function chdir($dir)
 {
     if ($this->authorized()) {
         return parent::chdir($dir);
     } else {
         return false;
     }
 }