]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix moving mount points
authorRobin Appelman <icewind@owncloud.com>
Thu, 9 Apr 2015 12:10:51 +0000 (14:10 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 13 Apr 2015 15:10:02 +0000 (17:10 +0200)
lib/private/files/view.php

index ab7a7d3db9abb1db4abd76bff4314fcd26f9202a..be14521990a04e83fb4644de1bf004e294d2f71a 100644 (file)
@@ -677,7 +677,9 @@ class View {
                                                $this->emit_file_hooks_post($exists, $path2);
                                        }
                                } elseif ($result) {
-                                       $this->updater->rename($path1, $path2);
+                                       if ($internalPath1 !== '') { // dont do a cache update for moved mounts
+                                               $this->updater->rename($path1, $path2);
+                                       }
                                        if ($this->shouldEmitHooks($path1) and $this->shouldEmitHooks($path2)) {
                                                \OC_Hook::emit(
                                                        Filesystem::CLASSNAME,