ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
createDir (string $path, string $visibility=Visibility::PUBLIC_ACCESS) | |
Create a new directory. More... | |
copyDir (string $source, string $destination) | |
Copy all childes of the source recursive to the destination. More... | |
deleteDir (string $path) | |
Deletes a directory recursive. More... | |
Definition at line 29 of file DirectoryWriteAccess.php.
ILIAS\Filesystem\Provider\DirectoryWriteAccess::copyDir | ( | string | $source, |
string | $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. |
DirectoryNotFoundException | Thrown if the source directory could not be found. |
IOException | Thrown if the directory could not be copied. |
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.
ILIAS\Filesystem\Provider\DirectoryWriteAccess::createDir | ( | string | $path, |
string | $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 | ( | string | $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.