|
@@ 413-420 (lines=8) @@
|
| 410 |
|
return $this->storage; |
| 411 |
|
} |
| 412 |
|
|
| 413 |
|
public function file_get_contents($path) { |
| 414 |
|
$info = [ |
| 415 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 416 |
|
'source' => $this->getSourcePath($path), |
| 417 |
|
]; |
| 418 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info); |
| 419 |
|
return parent::file_get_contents($path); |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
public function file_put_contents($path, $data) { |
| 423 |
|
$info = [ |
|
@@ 422-429 (lines=8) @@
|
| 419 |
|
return parent::file_get_contents($path); |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
public function file_put_contents($path, $data) { |
| 423 |
|
$info = [ |
| 424 |
|
'target' => $this->getMountPoint() . '/' . $path, |
| 425 |
|
'source' => $this->getSourcePath($path), |
| 426 |
|
]; |
| 427 |
|
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info); |
| 428 |
|
return parent::file_put_contents($path, $data); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
} |
| 432 |
|
|