yiisoft/yii — pull request #1795 by resurtm (2012-12-02 06:41:29+00:00)
Title: Enh #1725: Added CFileHelper::removeDirectory() static method

Enh #1725: Added CFileHelper::removeDirectory() static method.

`opendir` method seems fastest possible: http://mattgeri.com/blog/2009/01/php-code-to-check-if-a-directory-is-empty/