generator: truncate destination file