summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/smb.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-17 02:59:38 +0200
committerRobin Appelman <icewind@owncloud.com>2012-06-17 02:59:38 +0200
commited66c63c29c71c183093b7d34133b4cfb5d64925 (patch)
tree1b42fbeb971a4ef50b12ff7bc05b1fe76f80ed82 /apps/files_external/lib/smb.php
parent769cbe9a4cc5b105cc0277057b21e4661bd9c890 (diff)
downloadnextcloud-server-ed66c63c29c71c183093b7d34133b4cfb5d64925.tar.gz
nextcloud-server-ed66c63c29c71c183093b7d34133b4cfb5d64925.zip
improve caching smb results a bit
Diffstat (limited to 'apps/files_external/lib/smb.php')
-rw-r--r--apps/files_external/lib/smb.php4
1 files changed, 4 insertions, 0 deletions
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