|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Interface DirectoryReadAccess. More...
Inheritance diagram for ILIAS\Filesystem\Provider\DirectoryReadAccess:
Collaboration diagram for ILIAS\Filesystem\Provider\DirectoryReadAccess:Public Member Functions | |
| hasDir (string $path) | |
| Checks whether the directory exists or not. More... | |
| listContents (string $path='', bool $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 | ( | string | $path | ) |
Checks whether the directory exists or not.
| string | $path | The path which should be checked. |
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, ILIAS\Filesystem\FilesystemFacade, and ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess.
| ILIAS\Filesystem\Provider\DirectoryReadAccess::listContents | ( | string | $path = '', |
| bool | $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\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, ILIAS\Filesystem\FilesystemFacade, and ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess.