mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
suppress error when using is_dir on non directory in smb backend
This commit is contained in:
parent
aeed130b3a
commit
7f57591ef1
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,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);//using opendir causes the same amount of requests and caches the content of the folder in one go
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue