From 7cb6811a7b23a2fed96bea65b9ea8aaad512e33a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Tue, 10 Mar 2015 11:47:06 +0100
Subject: [PATCH] tearDown the filesystem right before setting it up again

---
 apps/files_trashbin/command/expire.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files_trashbin/command/expire.php b/apps/files_trashbin/command/expire.php
index 842e061eeb..968608a31c 100644
--- a/apps/files_trashbin/command/expire.php
+++ b/apps/files_trashbin/command/expire.php
@@ -49,6 +49,7 @@ class Expire implements ICommand {
 	}
 
 	public function handle() {
+		\OC_Util::tearDownFS();
 		\OC_Util::setupFS($this->user);
 		Trashbin::expire($this->trashBinSize, $this->user);
 	}
-- 
GitLab