|
@@ 483-490 (lines=8) @@
|
| 480 |
|
return $this->storage; |
| 481 |
|
} |
| 482 |
|
|
| 483 |
|
public function file_get_contents($path) { |
| 484 |
|
$info = [ |
| 485 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 486 |
|
'source' => $this->getUnjailedPath($path), |
| 487 |
|
]; |
| 488 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); |
| 489 |
|
return parent::file_get_contents($path); |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
public function file_put_contents($path, $data) { |
| 493 |
|
$info = [ |
|
@@ 492-499 (lines=8) @@
|
| 489 |
|
return parent::file_get_contents($path); |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
public function file_put_contents($path, $data) { |
| 493 |
|
$info = [ |
| 494 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 495 |
|
'source' => $this->getUnjailedPath($path), |
| 496 |
|
]; |
| 497 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info); |
| 498 |
|
return parent::file_put_contents($path, $data); |
| 499 |
|
} |
| 500 |
|
|
| 501 |
|
public function setMountOptions(array $options) { |
| 502 |
|
$this->mountOptions = $options; |