diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-03-17 13:54:26 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-03-21 14:24:00 +0100 |
commit | dfbd85d7231d3440b2831c61a83ba8cb1512523e (patch) | |
tree | fbece739c4879b823e911f3d7a125c28bf791b0b /apps/files_external/3rdparty/icewind/smb/src | |
parent | 90fb744e89572f5f9a41a82e9619bd3b2bcfa0a6 (diff) | |
download | nextcloud-server-dfbd85d7231d3440b2831c61a83ba8cb1512523e.tar.gz nextcloud-server-dfbd85d7231d3440b2831c61a83ba8cb1512523e.zip |
update icewind/streams to 0.4.0 and icewind/smb to 1.0.7 in files_external
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src')
-rw-r--r-- | apps/files_external/3rdparty/icewind/smb/src/NativeStream.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php b/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php index 07bd2f1e797..8ffa8836924 100644 --- a/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php +++ b/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php @@ -7,6 +7,7 @@ namespace Icewind\SMB; +use Icewind\SMB\Exception\Exception; use Icewind\SMB\Exception\InvalidRequestException; use Icewind\Streams\File; @@ -89,7 +90,11 @@ class NativeStream implements File { } public function stream_stat() { - return $this->state->fstat($this->handle); + try { + return $this->state->fstat($this->handle); + } catch (Exception $e) { + return false; + } } public function stream_tell() { |