|
@@ 467-474 (lines=8) @@
|
| 464 |
|
return $this->storage; |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
public function file_get_contents($path) { |
| 468 |
|
$info = [ |
| 469 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 470 |
|
'source' => $this->getUnjailedPath($path), |
| 471 |
|
]; |
| 472 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); |
| 473 |
|
return parent::file_get_contents($path); |
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
public function file_put_contents($path, $data) { |
| 477 |
|
$info = [ |
|
@@ 476-483 (lines=8) @@
|
| 473 |
|
return parent::file_get_contents($path); |
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
public function file_put_contents($path, $data) { |
| 477 |
|
$info = [ |
| 478 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 479 |
|
'source' => $this->getUnjailedPath($path), |
| 480 |
|
]; |
| 481 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info); |
| 482 |
|
return parent::file_put_contents($path, $data); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
public function setMountOptions(array $options) { |
| 486 |
|
$this->mountOptions = $options; |