update cache after move to trash

This commit is contained in:
Robin Appelman 2015-05-13 14:54:43 +02:00
parent b70e1ffc6d
commit a0854b36f0
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ class Trashbin {
return false;
}
$view->getUpdater()->rename('/files/' . $file_path, $trashPath);
if ($sizeOfAddedFiles !== false) {
$size = $sizeOfAddedFiles;
$query = \OC_DB::prepare("INSERT INTO `*PREFIX*files_trash` (`id`,`timestamp`,`location`,`user`) VALUES (?,?,?,?)");