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)); + } + } }