]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix filetype for smb storage backend
authorRobin Appelman <icewind@owncloud.com>
Thu, 11 Oct 2012 19:17:48 +0000 (21:17 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 11 Oct 2012 20:18:34 +0000 (22:18 +0200)
apps/files_external/lib/smb.php

index e5ba7a17743d0dc2fb855fe0c3375851df36c206..eed2582dc99bae46761a9ad9541a635d5f7c1358 100644 (file)
@@ -59,7 +59,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) ? 'dir' : 'file';//using opendir causes the same amount of requests and caches the content of the folder in one go
        }
 
        /**