From 7f57591ef1e2a7528752674595a32b35cfce4cd3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Jun 2012 03:09:49 +0200 Subject: [PATCH] suppress error when using is_dir on non directory in smb backend --- apps/files_external/lib/smb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } /** -- 2.39.5