public function rename($newKey)
    {
        $this->filesystem->rename($this->key, $newKey);

        $this->key = $newKey;
    }
public function rename($newKey)
    {
        $this->filesystem->rename($this->key, $newKey);

        $this->key = $newKey;
    }
public function rename ( $ newKey ) { $ this -> filesystem -> rename ( $ this -> key , $ newKey ) ; $ this -> key = $ newKey ; }
Rename the file and move it to its new location.

@param string $newKey
Rename the file and move it to its new location .