summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/icewind/smb/src/RawConnection.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src/RawConnection.php')
-rw-r--r--apps/files_external/3rdparty/icewind/smb/src/RawConnection.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/RawConnection.php b/apps/files_external/3rdparty/icewind/smb/src/RawConnection.php
index 15478511a72..88ab046ef38 100644
--- a/apps/files_external/3rdparty/icewind/smb/src/RawConnection.php
+++ b/apps/files_external/3rdparty/icewind/smb/src/RawConnection.php
@@ -95,6 +95,15 @@ class RawConnection {
}
/**
+ * read a line of output
+ *
+ * @return string
+ */
+ public function readError() {
+ return trim(stream_get_line($this->getErrorStream(), 4086));
+ }
+
+ /**
* get all output until the process closes
*
* @return array