Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-09 10:51:38 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-09-10 16:20:09 +0300
commit9448a0e72d77fb7ed8cd50d6e47bd37932a9d24d (patch)
tree6719f8e62ec7fd29fce650755ae77bae3fb83e74 /lib
parent51b01cb054af4eb6988c9c3e037e4446bf297e1c (diff)
Annotate that writeStream can throw a GenericFileException
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Files/Storage/IWriteStreamStorage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Files/Storage/IWriteStreamStorage.php b/lib/public/Files/Storage/IWriteStreamStorage.php
index 24d6d7a1f94..319453d4bbc 100644
--- a/lib/public/Files/Storage/IWriteStreamStorage.php
+++ b/lib/public/Files/Storage/IWriteStreamStorage.php
@@ -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;