From c2f0fe51c427374e918b72c28c521df27e614cae Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Fri, 19 Aug 2011 20:05:57 -0400 Subject: [PATCH] Add getLocalFile() to OC_Filestorage_Shared --- apps/files_sharing/sharedstorage.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 6e9990fb30..b890d9ac9f 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)); + } + } }