]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add getLocalFile() to OC_Filestorage_Shared
authorMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 20 Aug 2011 00:05:57 +0000 (20:05 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 20 Aug 2011 00:05:57 +0000 (20:05 -0400)
apps/files_sharing/sharedstorage.php

index 6e9990fb3076b3de2b51b014bc95f0149db10b8e..b890d9ac9fd8fbfc5d71b1395769af1e8b8a812d 100644 (file)
@@ -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));
+               }
+       }
        
 }