Adds a new capability to choose how to handle already existing target files when using a generator. See #17925 Co-authored-by: Michael Monerau <micmo@qontrol.io>