]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use proper storage method for writing skeleton files 35049/head
authorJulius Härtl <jus@bitgrid.net>
Fri, 14 Oct 2022 21:44:29 +0000 (23:44 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 9 Nov 2022 12:11:16 +0000 (13:11 +0100)
otherwise the filecache will have a wrong size for skeleton files

Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/legacy/OC_Util.php

index 88698151602108e91be1c5c6b1960ce4ab4c7d28..3a3b634e5228ad4834cfececd798ea00b51ffcdb 100644 (file)
@@ -254,7 +254,7 @@ class OC_Util {
                                                closedir($dir);
                                                return;
                                        }
-                                       stream_copy_to_stream($sourceStream, $child->fopen('w'));
+                                       $child->putContent($sourceStream);
                                }
                        }
                }