Skip to content

Commit b43f2b1

Browse files
authored
Merge pull request #35050 from nextcloud/backport/34834/stable23
[stable23] Fix size calculation on copying the skeleton files
2 parents 1e5c2b3 + 6ded6af commit b43f2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/legacy/OC_Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ public static function copyr($source, \OCP\Files\Folder $target) {
486486
closedir($dir);
487487
return;
488488
}
489-
stream_copy_to_stream($sourceStream, $child->fopen('w'));
489+
$child->putContent($sourceStream);
490490
}
491491
}
492492
}

0 commit comments

Comments
 (0)