mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
improve caching smb results a bit
This commit is contained in:
parent
8a902d8f65
commit
aeed130b3a
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue