From 0eb32bfc936fd4a380da96fee7d1dc83585b4416 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Thu, 23 May 2013 10:23:16 -0400 Subject: [PATCH] Switch to calling deleteAll via storage to avoid emitting delete hook --- lib/files/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/files/view.php b/lib/files/view.php index c93b579451e..8c3f6bf6a19 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -375,7 +375,8 @@ class View { if ($this->is_dir($path1)) { $result = $this->copy($path1, $path2); if ($result === true) { - $result = $this->deleteAll($path1); + list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1); + $result = $storage1->deleteAll($internalPath1); } } else { $source = $this->fopen($path1 . $postFix1, 'r'); -- 2.39.5