contao/core — Issue #3697: File->renameTo() method should return Files->rename() method result
Author: DyaGa
Created: 2011-12-15 17:59:30+00:00
State: open

So, there should be something like this in `File.php`:

```php
public function renameTo($strNewName)
{
$return = $this->Files->rename($this->strFile, $strNewName);

if ($return)
{
$this->strFile = $strNewName;

// clear cache
$this->arrCache = array();
}

return $return;
}
```

line `$this->arrCache = array(); ` is a solution for my previous issue #3693