Skip to content

Commit

Permalink
fix: Fix copying to the root of another mountpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Dec 17, 2024
1 parent f9ee350 commit 826b89b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Files/Cache/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ public function renameFromStorage(IStorage $sourceStorage, $source, $target) {
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);
Expand Down

0 comments on commit 826b89b

Please sign in to comment.