add getLocalFile to local storage provider

This commit is contained in:
Robin Appelman 2011-07-22 06:29:45 +02:00
parent 4ff2dc3035
commit f441059b01
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class OC_FILESTORAGE{
public function hash($type,$path,$raw){}
public function free_space($path){}
public function search($query){}
public function getLocalFile($path){}// get a path to a local version of the file, whether the original file is local or remote
}
@ -376,6 +377,9 @@ class OC_FILESTORAGE_LOCAL extends OC_FILESTORAGE{
public function search($query){
return $this->searchInDir($query);
}
public function getLocalFile($path){
return $this->datadir.$path;
}
private function searchInDir($query,$dir=''){
$files=array();