diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-09-11 08:45:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 08:45:21 +0200 |
commit | d43eeab39daa4c19eef0334a7fe50cd049fd54ce (patch) | |
tree | 7bc5b25210b07bd09977e524335c9877c1fd0439 /lib | |
parent | b9ef2a543f442988b53bac54f82192b7e04860da (diff) | |
parent | 407fb28cb6141941681b068320ebb5204ffdb529 (diff) | |
download | nextcloud-server-d43eeab39daa4c19eef0334a7fe50cd049fd54ce.tar.gz nextcloud-server-d43eeab39daa4c19eef0334a7fe50cd049fd54ce.zip |
Merge pull request #22778 from nextcloud/backport/22739/stable19
[stable19] Don't fail if copying a file of 0 byte size
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Files/Storage/IWriteStreamStorage.php | 3 |
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; |