diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 9db8e9fd982a4298f547578b1ac211cd668ece69..5e34deb23373b8a342b3856210fd9bfb5cb87365 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
 	}
 
 	/**