summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-02-25 02:04:12 -0800
committerFrank Karlitschek <frank@owncloud.org>2013-02-25 02:04:12 -0800
commit9ee5069f2a1d76c899eeef6cec0f06387764fabd (patch)
treee1d381e72428a2d8f03b19ed46962c7914e1eaef /lib/public
parent8f659169047f2dcdd6f7a15b2b31b537fe858953 (diff)
parenteabfd9b69b11fd0859dee919d702b39bd50369dd (diff)
downloadnextcloud-server-9ee5069f2a1d76c899eeef6cec0f06387764fabd.tar.gz
nextcloud-server-9ee5069f2a1d76c899eeef6cec0f06387764fabd.zip
Merge pull request #1856 from owncloud/fix_error_handling_stream_copy
don't use the number of written bytes as indicator if streamCopy() was successful
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/files.php b/lib/public/files.php
index c2945b200e8..700bf574537 100644
--- a/lib/public/files.php
+++ b/lib/public/files.php
@@ -62,7 +62,8 @@ class Files {
* @return int the number of bytes copied
*/
public static function streamCopy( $source, $target ) {
- return(\OC_Helper::streamCopy( $source, $target ));
+ list($count, $result) = \OC_Helper::streamCopy( $source, $target );
+ return $count;
}
/**