From ed6ef37dd18881f239aec62e060c241352e1d2a8 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 8869815160210..3a3b634e5228a 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); } } }