fix filetype for smb storage backend

This commit is contained in:
Robin Appelman 2012-10-11 21:17:48 +02:00
parent 5698c8519a
commit 92ddefe5a6
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
/**