summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-13 14:54:43 +0200
committerRobin Appelman <icewind@owncloud.com>2015-05-18 17:16:13 +0200
commita0854b36f012e4c5573a4ed6ea8d074482908c4b (patch)
treedf4803f7b63f21de7d65afebcaf67b480cfe4fdf /apps/files_trashbin/lib
parentb70e1ffc6d91a4ca2c6b66012ea6f7e5d39050a0 (diff)
downloadnextcloud-server-a0854b36f012e4c5573a4ed6ea8d074482908c4b.tar.gz
nextcloud-server-a0854b36f012e4c5573a4ed6ea8d074482908c4b.zip
update cache after move to trash
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 9c8aa5e7525..26a7aeb8033 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -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 (?,?,?,?)");