]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use proper storage method for writing skeleton files 34834/head
authorJulius Härtl <jus@bitgrid.net>
Fri, 14 Oct 2022 21:44:29 +0000 (23:44 +0200)
committerJulius Härtl <jus@bitgrid.net>
Thu, 27 Oct 2022 06:47:32 +0000 (08:47 +0200)
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 4778fe3309761eeec74356aa7f83101b95f5942b..429f7ed5d05ab3eb1486ad0b682f2ab4605b0ddf 100644 (file)
@@ -255,7 +255,7 @@ class OC_Util {
                                                closedir($dir);
                                                return;
                                        }
-                                       stream_copy_to_stream($sourceStream, $child->fopen('w'));
+                                       $child->putContent($sourceStream);
                                }
                        }
                }