before and after, write changed_files(before, after) returning a set of files present in exactly one of the two snapshots — files that were either added or deleted, but not those present in both.changed_files(['a.txt', 'b.txt'], ['b.txt', 'c.txt'])
{'a.txt', 'c.txt'}a.txt was deleted, c.txt was added; b.txt survived unchanged.
This is exactly the symmetric difference operation.
set(before) ^ set(after).