From ad4f066bac5e4d6777b258d6a161ab062211d787 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sun, 17 Jun 2012 03:09:49 +0200
Subject: 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(-)

(limited to 'apps/files_external')

diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 9db8e9fd982..5e34deb2337 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
 	}
 
 	/**
-- 
cgit v1.2.3