With this recent PR, opaque directories such as .xcassets directories are treated as files rather than directories. I’m wondering if it’s possible to support similarly treating an arbitrary directory as a file? This was possible when using resources: rather than buildableFolders:, by passing FileElement.folderReference(path: "Some/Directory”) instead of ”Some/Directory”. But while resources:took arguments of type ResourceFileElements, buildableFolders only takes a BuildableFolder, which can only be created from a string or Path, not a FileElement.
This would be valuable to my team– without going into too much detail, we have an external Git Submodule which contains nested subdirectories of resources, and it’s ideal for us to preserve the underlying directory structure when accessing these files.
A related but slightly different request would be the ability to add an arbitrary file to the BuildableFolders array, with it being treated the same as an opaque folder. I understand that in practical terms this would likely be functionally the same as just passing single files via resources:, but it would be nice from a readability perspective to have all resources in one place.