ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ListPaths.php
Go to the documentation of this file.
1<?php
2
4
6{
12 public function getMethod()
13 {
14 return 'listPaths';
15 }
16
25 public function handle($directory = '', $recursive = false)
26 {
27 $result = [];
28 $contents = $this->filesystem->listContents($directory, $recursive);
29
30 foreach ($contents as $object) {
31 $result[] = $object['path'];
32 }
33
34 return $result;
35 }
36}
$result
An exception for terminatinating execution or to throw for unit testing.
handle($directory='', $recursive=false)
List all paths.
Definition: ListPaths.php:25
getMethod()
Get the method name.
Definition: ListPaths.php:12