validateConfig()) { return !empty($this->archive()) && file_exists($this->archive()); // No new temp file given, old archive still exists, pretend it worked... } return Taskmanager::submit('MoveFile', array( 'source' => $this->tmpFile, 'destination' => $tgz, 'parentTask' => $parent, 'failOnParentFail' => false )); } protected function moduleVersion(): int { return self::VERSION; } protected function validateConfig(): bool { return $this->tmpFile !== false && file_exists($this->tmpFile); } public function setData(string $key, $value): bool { if ($key !== 'tmpFile' || !is_string($value) || !file_exists($value)) return false; $this->tmpFile = $value; return true; } public function getData(?string $key): bool { return false; } public function allowDownload(): bool { return true; } }