private function deleteTemporaries($directory)
    {
        if (is_dir($directory)) {
            $fileSystem = new Filesystem();
            $fileSystem->deleteDirectory($directory, false);
        }
        $this->manifest = null;
        return true;
    }