public function init() { parent::init(); $this->tmpPath = P::getAlias($this->tmpPath); if (!is_dir($this->tmpPath)) { FileHelper::createDirectory($this->tmpPath, $this->tmpDirMode, true); } }