diff options
author | Stephan Orbaugh <62374139+sorbaugh@users.noreply.github.com> | 2024-12-19 15:49:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 15:49:07 +0100 |
commit | 1c81a67168b6354231a8983a710fbc6aefb29e79 (patch) | |
tree | 48ee1305bdd382e4ca89847625ce1e76c79557ed /lib | |
parent | ae0521ec2834a0a41a7824e78d9af88d23c4c451 (diff) | |
parent | 08c7001a04a8d414283f32e9ea35787be91bdbe8 (diff) | |
download | nextcloud-server-1c81a67168b6354231a8983a710fbc6aefb29e79.tar.gz nextcloud-server-1c81a67168b6354231a8983a710fbc6aefb29e79.zip |
Merge pull request #49895 from nextcloud/fix/fix-copy-to-mountpoint-root
fix: Fix copying to the root of another mountpoint
Diffstat (limited to 'lib')
-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 42812dbc882..03681036aa2 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); |