summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-31 16:12:49 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-31 16:12:49 +0100
commitc46f701771db9285e70a5b1d5a4b641046bf703c (patch)
tree2c020015d04ede4be9f158d48a36c1eb158c0e72 /lib/filesystemview.php
parentdf67c35017d8794a4b1c83fd4e41658b2e6d0e75 (diff)
downloadnextcloud-server-c46f701771db9285e70a5b1d5a4b641046bf703c.tar.gz
nextcloud-server-c46f701771db9285e70a5b1d5a4b641046bf703c.zip
use filesystem cache for searching
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 9687a8bceb4..6c2ca916310 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -279,23 +279,6 @@ class OC_FilesystemView {
return $this->basicOperation('free_space',$path);
}
- public function search($query){
- $files=array();
- $fakeRoot=$this->$fakeRoot;
- $fakeRootLength=strlen($fakeRoot);
- $results=OC_FileCache::search($query);
- if(is_array($results)){
- foreach($results as $result){
- $file=str_replace('//','/',$mountpoint.$result);
- if(substr($file,0,$fakeRootLength)==$fakeRoot){
- $file=substr($file,$fakeRootLength);
- $files[]=$file;
- }
- }
- }
- return $files;
- }
-
/**
* abstraction for running most basic operations
* @param string $operation