helpers\BaseFileHelper removeDirectory()

removeDirectory() public static method

Removes a directory (and all its content) recursively.

public static void removeDirectory ( $dir, $options = [] )
$dir string

The directory to be deleted recursively.

$options array

Options for directory remove. Valid options are:

  • traverseSymlinks: boolean, whether symlinks to the directories should be traversed too. Defaults to false, meaning the content of the symlinked directory would not be deleted. Only symlink would be removed in that default case.
throws yii\base\ErrorException

in case of failure

doc_Yii
2016-10-30 17:04:45
Comments
Leave a Comment

Please login to continue.