Is it possible to append to a file using generator expressions?

Hi all!

I have been searching for a way to append to a file using generator expressions and haven’t been able to find any information on this. At this point, I am wondering if it is even possible. My use case is that I want every target to be able to write its output directory to a single file, I can then use that information to clean stale content files in each target’s directory.

I could instead use a directory and a file per target and iterate through the files in the directory as a workaround, but I thought I might ask here to see if I am missing anything obvious here.

Cheers,
Keith