rename() public static method

Rename
public static rename ( string $path, string $newpath, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean
$path string Path
$newpath string New path
$cb callable Callback
$pri integer Priority
return resource | boolean
Beispiel #1
0
 /**
  * Moves an uploaded file to a new location
  * @param  string $filename The filename of the uploaded file
  * @param  string $dest The destination of the moved file
  * @return boolean           Success
  */
 public function moveUploadedFile($filename, $dest)
 {
     if (!$this->isUploadedFile($filename)) {
         return false;
     }
     return FileSystem::rename($filename, $dest);
 }