diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-22 06:29:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-22 06:29:45 +0200 |
commit | f441059b015b01af1fcafcdeeef8727f19d0d2d5 (patch) | |
tree | 1ed766414ad932d9e03ab225629c95ccbce5c372 /lib/filestorage.php | |
parent | 4ff2dc30354d923115d2ad4324fd4b5ed87a8028 (diff) | |
download | nextcloud-server-f441059b015b01af1fcafcdeeef8727f19d0d2d5.tar.gz nextcloud-server-f441059b015b01af1fcafcdeeef8727f19d0d2d5.zip |
add getLocalFile to local storage provider
Diffstat (limited to 'lib/filestorage.php')
-rw-r--r-- | lib/filestorage.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/filestorage.php b/lib/filestorage.php index c2614dc5dcf..95e8c31eff2 100644 --- a/lib/filestorage.php +++ b/lib/filestorage.php @@ -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(); |