Skip to content
Snippets Groups Projects
Commit ed66c63c authored by Robin Appelman's avatar Robin Appelman
Browse files

improve caching smb results a bit

parent 769cbe9a
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,10 @@ class OC_FileStorage_SMB extends OC_FileStorage_StreamWrapper{ ...@@ -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 * check if a file or folder has been updated since $time
* @param int $time * @param int $time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment