A preserve file is not overwritten but edited by the user. But due to changes in the API model the user would like to update the edited document for these changes. For this report that these files have changed on disk and offer a (editable) diff viewer.
If a file name changes, we can not track if an old file existed. We either write a file registry in each folder or inside an output folder to list all written files, which can be safely purged or ensure we only use e.g. gen folders which can be safely purged.
A preserve file is not overwritten but edited by the user. But due to changes in the API model the user would like to update the edited document for these changes. For this report that these files have changed on disk and offer a (editable) diff viewer.
If a file name changes, we can not track if an old file existed. We either write a file registry in each folder or inside an output folder to list all written files, which can be safely purged or ensure we only use e.g. gen folders which can be safely purged.