Swift Package file - resources .copy rule with nested directories

Does anyone know if the resources .copy rule in a Swift .package file is supposed to recursively copy the full contents if it's pointed at a directory?

The docs say…

If you pass a directory path to the copy rule, the compiler retains the directory’s structure.

…but you can interpret that in a few different ways.

It also doesn’t appear to work if the directory you specify only contains directories.

Answered by middaparka in 870785022

So… the files are correctly copied, it’s just thar you need to use the full URL to access them, rather than simply being able to use the standard named: approach.

Accepted Answer

So… the files are correctly copied, it’s just thar you need to use the full URL to access them, rather than simply being able to use the standard named: approach.

Swift Package file - resources .copy rule with nested directories
 
 
Q