From ed66c63c29c71c183093b7d34133b4cfb5d64925 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Jun 2012 02:59:38 +0200 Subject: [PATCH] improve caching smb results a bit --- apps/files_external/lib/smb.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index e05d69f7844..9db8e9fd982 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 -- 2.39.5