From d485db32bc448df3f98faa587875d2ebf152e638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 14 Oct 2022 23:44:29 +0200 Subject: [PATCH] Use proper storage method for writing skeleton files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl --- lib/private/legacy/OC_Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index bf9ed6e29ff83..88cd6baddc50e 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -254,7 +254,7 @@ public static function copyr($source, \OCP\Files\Folder $target) { closedir($dir); return; } - stream_copy_to_stream($sourceStream, $child->fopen('w')); + $child->putContent($sourceStream); } } }