Skip to content

Commit cca0b2b

Browse files
committed
Use proper storage method for writing skeleton files
otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent dc4f59c commit cca0b2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/legacy/OC_Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static function copyr($source, \OCP\Files\Folder $target) {
255255
closedir($dir);
256256
return;
257257
}
258-
stream_copy_to_stream($sourceStream, $child->fopen('w'));
258+
$child->putContent($sourceStream);
259259
}
260260
}
261261
}

0 commit comments

Comments
 (0)