From 215388f4e06ab229ffaccc052f8d2b07faa45892 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 28 Jan 2015 16:30:42 +0100 Subject: [PATCH] Make sure we delete the file when doing a cross storage trashbin move --- apps/files_trashbin/lib/storage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_trashbin/lib/storage.php b/apps/files_trashbin/lib/storage.php index 21b4e56d0bb..019fd490b52 100644 --- a/apps/files_trashbin/lib/storage.php +++ b/apps/files_trashbin/lib/storage.php @@ -85,6 +85,8 @@ class Storage extends Wrapper { $result = $this->storage->unlink($path); } unset($this->deletedFiles[$normalized]); + } else if ($this->storage->file_exists($path)) { + $result = $this->storage->unlink($path); } return $result; -- 2.39.5