summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/sharedstorage.php8
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));
+ }
+ }
}