Browse Source
Merge pull request #49895 from nextcloud/fix/fix-copy-to-mountpoint-root
fix: Fix copying to the root of another mountpoint
pull/49208/head
Stephan Orbaugh
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
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); |
|
|
|
|