src/helpers/FileHelper.php
public static function mkdir($path)
    {
        $path = Yii::getAlias($path);
        $path = rtrim(trim($path), '/');
        if (!file_exists($path)) {
            mkdir($path, 0777, true);
            Yii::warning('Created dir:  ' . $path . '/', 'file');

            return true;
        }

        return false;
    }
public static function mkdir($path)
    {
        $path = Yii::getAlias($path);
        $path = rtrim(trim($path), '/');
        if (!file_exists($path)) {
            mkdir($path, 0777, true);
            Yii::warning('Created dir:  ' . $path . '/', 'file');

            return true;
        }

        return false;
    }
public static function mkdir ( $ path ) { $ path = Yii :: getAlias ( $ path ) ; $ path = rtrim ( trim ( $ path ) , '/' ) ; if ( ! file_exists ( $ path ) ) { mkdir ( $ path , 0777 , true ) ; Yii :: warning ( 'Created dir:  ' . $ path . '/' , 'file' ) ; return true ; } return false ; }
Creates directory if not exists.
Creates intermediate directories when necessary.
@param string $path
@return bool true if directory did not exist and was created
Creates directory if not exists . Creates intermediate directories when necessary .