From: Robin Appelman Date: Sun, 17 Jun 2012 01:09:49 +0000 (+0200) Subject: suppress error when using is_dir on non directory in smb backend X-Git-Tag: v4.0.5~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f57591ef1e2a7528752674595a32b35cfce4cd3;p=nextcloud-server.git suppress error when using is_dir on non directory in smb backend --- diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index 801f3d1c889..96470002c35 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -61,7 +61,7 @@ class OC_FileStorage_SMB extends OC_FileStorage_StreamWrapper{ } public function filetype($path){ - return (bool)$this->opendir($path);//using opendir causes the same amount of requests and caches the content of the folder in one go + return (bool)@$this->opendir($path);//using opendir causes the same amount of requests and caches the content of the folder in one go } /**