Jobsets: cannot create archive within a nested destination path

Description

When creating a jobset with an archive destination, it cannot create the archive within a nested path. This is unlike the folder destination where the folder does get created and the contents are placed inside it.

This might be related to #20478 (closed)

Here is the error I see. I get this error with the attached project.

image

Steps to reproduce

jobset-issue.zip

  1. Open attached project
  2. Open jobset file and generate all outputs
  3. Archive should fail but folder should succeed

KiCad Version

Application: KiCad x64 on x64

Version: 10.0.1, release build

Libraries:
	wxWidgets 3.3.2 
	FreeType 2.13.3
	HarfBuzz 12.3.0
	FontConfig 2.17.1
	libcurl/8.18.0 Schannel zlib/1.3.1

Platform: Windows 11 (build 26200), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., AMD Radeon(TM) Graphics, 4.6.0 Compatibility Profile Context 25.10.30.02.250923

Build Info:
	Date: Apr 15 2026 19:23:15
	wxWidgets: 3.3.2 (wchar_t,STL containers)
	Boost: 1.90.0
	OCC: 7.9.2
	Curl: 8.18.0
	ngspice: 46
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)