fix filetype for smb storage backend

remotes/origin/stable45
Robin Appelman 13 years ago
parent 85e236d798
commit 87a3145ba1
  1. 2
      apps/files_external/lib/smb.php

@ -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…
Cancel
Save