public function makeTemporary(FileEvent $event)
    {
        if ($event->isTemporary === true) {
            return;
        }
        $temporaryPath = tempnam(\Yii::getAlias('@runtime/yii2-phar'), basename($event->realPath));
        copy($event->realPath, $temporaryPath);

        $event->isTemporary = true;
        $event->realPath = $temporaryPath;
    }