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

fix filetype for smb storage backend

parent 5698c851
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment