public function preparePathDirectory(string $path): string
    {
        $translatedPath = Yii::getAlias($path);

        if (!is_dir($translatedPath)) {
            FileHelper::createDirectory($translatedPath);
        }

        return $translatedPath;
    }
public function preparePathDirectory(string $path): string
    {
        $translatedPath = Yii::getAlias($path);

        if (!is_dir($translatedPath)) {
            FileHelper::createDirectory($translatedPath);
        }

        return $translatedPath;
    }
public function preparePathDirectory ( string $ path ) : string { $ translatedPath = Yii :: getAlias ( $ path ) ; if ( ! is_dir ( $ translatedPath ) ) { FileHelper :: createDirectory ( $ translatedPath ) ; } return $ translatedPath ; }
Prepares path directory.
@param string $path
@return string
@throws Exception
@since 1.1
Prepares path directory .