diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-12-17 14:09:11 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-04-28 10:23:21 +0000 |
commit | 3646da59f366bec9dec0c233858009d45cd7d897 (patch) | |
tree | 6ed64125d3426439e4da6001edb87080791d0abe | |
parent | b58a3ea48285e6c66c5d9e1d9a2ae1a1939959d0 (diff) | |
download | nextcloud-server-backport/49895/stable30.tar.gz nextcloud-server-backport/49895/stable30.zip |
fix: Fix copying to the root of another mountpointbackport/49895/stable30
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/private/Files/Cache/Updater.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php index e82b079d0c5..fa9e80004db 100644 --- a/lib/private/Files/Cache/Updater.php +++ b/lib/private/Files/Cache/Updater.php @@ -186,6 +186,9 @@ class Updater implements IUpdater { public function copyFromStorage(IStorage $sourceStorage, string $source, string $target): void { $this->copyOrRenameFromStorage($sourceStorage, $source, $target, function (ICache $sourceCache, ICacheEntry $sourceInfo) use ($target) { $parent = dirname($target); + if ($parent === '.') { + $parent = ''; + } $parentInCache = $this->cache->inCache($parent); if (!$parentInCache) { $parentData = $this->scanner->scan($parent, Scanner::SCAN_SHALLOW, -1, false); |