fix delTree
This commit is contained in:
parent
5a284afae6
commit
5425c3d1e9
|
@ -377,7 +377,7 @@ class OC_FILESTORAGE_LOCAL extends OC_FILESTORAGE{
|
||||||
if ($item == '.' || $item == '..') continue;
|
if ($item == '.' || $item == '..') continue;
|
||||||
if(is_file($dir.'/'.$item)){
|
if(is_file($dir.'/'.$item)){
|
||||||
if(unlink($dir.'/'.$item)){
|
if(unlink($dir.'/'.$item)){
|
||||||
$this->clearFolderSizeCache($path);
|
$this->clearFolderSizeCache($dir);
|
||||||
}
|
}
|
||||||
}elseif(is_dir($dir.'/'.$item)){
|
}elseif(is_dir($dir.'/'.$item)){
|
||||||
if (!$this->delTree($dirRelative. "/" . $item)){
|
if (!$this->delTree($dirRelative. "/" . $item)){
|
||||||
|
|
Loading…
Reference in New Issue