]> source.dussan.org Git - nextcloud-server.git/commitdiff
suppress error when using is_dir on non directory in smb backend
authorRobin Appelman <icewind@owncloud.com>
Sun, 17 Jun 2012 01:09:49 +0000 (03:09 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 10 Jul 2012 12:20:30 +0000 (14:20 +0200)
apps/files_external/lib/smb.php

index 801f3d1c8897c2e9ad767a31075612177e9d6fcb..96470002c353befeebe2aeae8d86b9f984c22bcf 100644 (file)
@@ -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
        }
 
        /**