ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface DirectoryReadAccess. More...
Public Member Functions | |
hasDir ($path) | |
Checks whether the directory exists or not. More... | |
listContents ($path='', $recursive=false) | |
Lists the content of a directory. More... | |
Interface DirectoryReadAccess.
Defines the readonly directory access operations of the filesystem.
Definition at line 21 of file DirectoryReadAccess.php.
ILIAS\Filesystem\Provider\DirectoryReadAccess::hasDir | ( | $path | ) |
Checks whether the directory exists or not.
string | $path | The path which should be checked. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.
ILIAS\Filesystem\Provider\DirectoryReadAccess::listContents | ( | $path = '' , |
|
$recursive = false |
|||
) |
Lists the content of a directory.
string | $path | The directory which should listed. Defaults to the adapter root directory. |
bool | $recursive | Set to true if the child directories also should be listed. Defaults to false. |
DirectoryNotFoundException | If the directory is not found or inaccessible. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.