|
@@ 437-444 (lines=8) @@
|
| 434 |
|
return $this->sourceStorage; |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
public function file_get_contents($path) { |
| 438 |
|
$info = [ |
| 439 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 440 |
|
'source' => $this->getSourcePath($path), |
| 441 |
|
]; |
| 442 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); |
| 443 |
|
return parent::file_get_contents($path); |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
public function file_put_contents($path, $data) { |
| 447 |
|
$info = [ |
|
@@ 446-453 (lines=8) @@
|
| 443 |
|
return parent::file_get_contents($path); |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
public function file_put_contents($path, $data) { |
| 447 |
|
$info = [ |
| 448 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 449 |
|
'source' => $this->getSourcePath($path), |
| 450 |
|
]; |
| 451 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info); |
| 452 |
|
return parent::file_put_contents($path, $data); |
| 453 |
|
} |
| 454 |
|
|
| 455 |
|
public function getWrapperStorage() { |
| 456 |
|
$this->init(); |