Add getLocalFile() to OC_Filestorage_Shared

This commit is contained in:
Michael Gapczynski 2011-08-19 20:05:57 -04:00
parent 778b8543c1
commit c2f0fe51c4
1 changed files with 8 additions and 0 deletions

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