Skip to content
Snippets Groups Projects
Unverified Commit cee531d6 authored by Julius Härtl's avatar Julius Härtl
Browse files

Annotate that writeStream can throw a GenericFileException


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 1dddf6ad
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@ declare(strict_types=1);
namespace OCP\Files\Storage;
use OCP\Files\GenericFileException;
/**
* Interface that adds the ability to write a stream directly to file
*
......@@ -39,6 +41,7 @@ interface IWriteStreamStorage extends IStorage {
* @param resource $stream
* @param int|null $size the size of the stream if known in advance
* @return int the number of bytes written
* @throws GenericFileException
* @since 15.0.0
*/
public function writeStream(string $path, $stream, int $size = null): int;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment