mirror of
https://github.com/nextcloud/server.git
synced 2026-05-12 00:19:36 -04:00
fix filetype for smb storage backend
This commit is contained in:
parent
85e236d798
commit
87a3145ba1
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ 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
|
||||
return (bool)@$this->opendir($path) ? 'dir' : 'file';//using opendir causes the same amount of requests and caches the content of the folder in one go
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue