ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface DirectoryWriteAccess. More...
Public Member Functions | |
createDir ($path, $visibility=Visibility::PUBLIC_ACCESS) | |
Create a new directory. More... | |
copyDir ($source, $destination) | |
Copy all childes of the source recursive to the destination. More... | |
deleteDir ($path) | |
Deletes a directory recursive. More... | |
Interface DirectoryWriteAccess.
Defines the write operations of the directory access.
Definition at line 22 of file DirectoryWriteAccess.php.
ILIAS\Filesystem\Provider\DirectoryWriteAccess::copyDir | ( | $source, | |
$destination | |||
) |
Copy all childes of the source recursive to the destination.
The file access rights will be copied as well.
The operation will fail fast if the destination directory is not empty. All destination folders will be created if needed.
string | $source | The source which should be scanned and copied. |
string | $destination | The destination of the recursive copy. |
IOException | Thrown if the directory could not be copied. |
DirectoryNotFoundException | Thrown if the source directory could not be found. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.
ILIAS\Filesystem\Provider\DirectoryWriteAccess::createDir | ( | $path, | |
$visibility = Visibility::PUBLIC_ACCESS |
|||
) |
Create a new directory.
Please note that the Visibility interface defines two constants PUBLIC_ACCESS and PRIVATE_ACCESS to ease the development process.
string | $path | The directory path which should be created. |
string | $visibility | The visibility of the directory. Defaults to visibility public. |
IOException | If the directory could not be created. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.
ILIAS\Filesystem\Provider\DirectoryWriteAccess::deleteDir | ( | $path | ) |
Deletes a directory recursive.
string | $path | The path which should be deleted. |
IOException | If the path could not be deleted. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.