mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
closes #5206, adding clearstatcache() to File::delete()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7435 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5319e89b5c
commit
a29b328c16
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ class File extends Object {
|
|||
* @access public
|
||||
*/
|
||||
function delete() {
|
||||
clearstatcache();
|
||||
if ($this->exists()) {
|
||||
return unlink($this->pwd());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue