diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-09 14:10:51 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-13 17:10:02 +0200 |
commit | addfafd9da020466df1d1fac56b9f1eb30f79f68 (patch) | |
tree | 6713cb40a17810c517d10813518f079042fec8f0 | |
parent | 86886608256f6c480269366f83f83fa97594a5dd (diff) | |
download | nextcloud-server-addfafd9da020466df1d1fac56b9f1eb30f79f68.tar.gz nextcloud-server-addfafd9da020466df1d1fac56b9f1eb30f79f68.zip |
Fix moving mount points
-rw-r--r-- | lib/private/files/view.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index ab7a7d3db9a..be14521990a 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -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, |