From: Robin Appelman Date: Sun, 17 Jun 2012 00:59:38 +0000 (+0200) Subject: improve caching smb results a bit X-Git-Tag: v4.0.5~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aeed130b3a14d2b2ca4ca6c3c8a75488e52d36bf;p=nextcloud-server.git improve caching smb results a bit --- diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index b9bbc0a5236..801f3d1c889 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -60,6 +60,10 @@ 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 + } + /** * check if a file or folder has been updated since $time * @param int $time