diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-22 01:40:04 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:55:58 +0200 |
commit | 8abe1c3f1a5f5da36ab6ac8d1c39b966991387ce (patch) | |
tree | 90e4038a73a0a450b965f34a7a1a8ee1b5d2a0ac /lib/private/files/cache/updater.php | |
parent | 60a659c87e1a3cb2c65dc330cb64c3414fd4b648 (diff) | |
download | nextcloud-server-8abe1c3f1a5f5da36ab6ac8d1c39b966991387ce.tar.gz nextcloud-server-8abe1c3f1a5f5da36ab6ac8d1c39b966991387ce.zip |
Don't do rename hooks for cache when moving the mountpoint
Diffstat (limited to 'lib/private/files/cache/updater.php')
-rw-r--r-- | lib/private/files/cache/updater.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index f6feb6624b2..f15c203cd58 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -83,6 +83,10 @@ class Updater { * @var string $internalTo */ list($storageFrom, $internalFrom) = self::resolvePath($from); + // if it's a moved mountpoint we dont need to do anything + if ($internalFrom === '') { + return; + } list($storageTo, $internalTo) = self::resolvePath($to); if ($storageFrom && $storageTo) { if ($storageFrom === $storageTo) { |