diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-20 04:05:57 +0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-20 04:05:57 +0400 |
commit | c2f0fe51c427374e918b72c28c521df27e614cae (patch) | |
tree | e04bf7424fc45876b2f7d058249a8648d25a11ce | |
parent | 778b8543c1e76e5f0cc969eb8fe96b6d31825071 (diff) |
Add getLocalFile() to OC_Filestorage_Shared
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 6e9990fb307..b890d9ac9fd 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -530,6 +530,14 @@ class OC_Filestorage_Shared extends OC_Filestorage { public function search($query) { } + + public function getLocalFile($path) { + $source = $this->getSource($path); + if ($source) { + $storage = OC_Filesystem::getStorage($source); + return $storage->getLocalFile($this->getInternalPath($source)); + } + } } |