From 97a51c46eddf4c1e8c691eea96dd762425ce17ca Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Tue, 4 Nov 2014 12:29:42 +0100
Subject: [PATCH] Only rescan trash folder when checking deleted versions

This fix prevents the file scanner to rescan the WHOLE storage and reset
the etags by mistake.
---
 apps/files_trashbin/lib/trashbin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 3d90791108..52d2414390 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -933,7 +933,7 @@ class Trashbin {
 		//force rescan of versions, local storage may not have updated the cache
 		/** @var \OC\Files\Storage\Storage $storage */
 		list($storage, ) = $view->resolvePath('/');
-		$storage->getScanner()->scan('');
+		$storage->getScanner()->scan('files_trashbin');
 
 		if ($timestamp) {
 			// fetch for old versions
-- 
GitLab