Example #1
0
 /**
  * @param $name
  * @return bool
  */
 public function rename($name)
 {
     $filename = SPFs::getFileName($this->_filename);
     $new = str_replace($filename, $name, $this->_filename);
     if (SPFs::move($this->_filename, $new)) {
         $this->_filename = $new;
         return true;
     } else {
         return false;
     }
 }