]> source.dussan.org Git - nextcloud-server.git/commitdiff
Switch to calling deleteAll via storage to avoid emitting delete hook
authorMichael Gapczynski <mtgap@owncloud.com>
Thu, 23 May 2013 14:23:16 +0000 (10:23 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 24 May 2013 00:43:08 +0000 (20:43 -0400)
lib/files/view.php

index c93b579451ec1c1e73ba0a2baecb1ae5b612615a..8c3f6bf6a19ed5a86cd98658be7906784b6ca3e1 100644 (file)
@@ -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');