lib/private/Files/Storage/Home.php 1 location
|
@@ 80-88 (lines=9) @@
|
| 77 |
|
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher |
| 78 |
|
* @return \OC\Files\Cache\Propagator |
| 79 |
|
*/ |
| 80 |
|
public function getPropagator($storage = null) { |
| 81 |
|
if (!$storage) { |
| 82 |
|
$storage = $this; |
| 83 |
|
} |
| 84 |
|
if (!isset($this->propagator)) { |
| 85 |
|
$this->propagator = new HomePropagator($storage, \OC::$server->getDatabaseConnection()); |
| 86 |
|
} |
| 87 |
|
return $this->propagator; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
|
| 91 |
|
/** |
lib/private/Files/Storage/Wrapper/Jail.php 1 location
|
@@ 506-516 (lines=11) @@
|
| 503 |
|
return $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $this->getUnjailedPath($targetInternalPath)); |
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
public function getPropagator($storage = null) { |
| 507 |
|
if (isset($this->propagator)) { |
| 508 |
|
return $this->propagator; |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
if (!$storage) { |
| 512 |
|
$storage = $this; |
| 513 |
|
} |
| 514 |
|
$this->propagator = new JailPropagator($storage, \OC::$server->getDatabaseConnection()); |
| 515 |
|
return $this->propagator; |
| 516 |
|
} |
| 517 |
|
} |
| 518 |
|
|