apps/files_trashbin/lib/Sabre/AbstractTrashFolder.php 1 location
|
@@ 45-55 (lines=11) @@
|
| 42 |
|
return $children; |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
public function getChild($name): ITrash { |
| 46 |
|
$entries = $this->getChildren(); |
| 47 |
|
|
| 48 |
|
foreach ($entries as $entry) { |
| 49 |
|
if ($entry->getName() === $name) { |
| 50 |
|
return $entry; |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
throw new NotFound(); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function childExists($name): bool { |
| 58 |
|
try { |
apps/files_trashbin/lib/Sabre/TrashRoot.php 1 location
|
@@ 80-90 (lines=11) @@
|
| 77 |
|
return $children; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public function getChild($name): ITrash { |
| 81 |
|
$entries = $this->getChildren(); |
| 82 |
|
|
| 83 |
|
foreach ($entries as $entry) { |
| 84 |
|
if ($entry->getName() === $name) { |
| 85 |
|
return $entry; |
| 86 |
|
} |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
throw new NotFound(); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
public function childExists($name): bool { |
| 93 |
|
try { |