Sort discrepancy lists before printing.

This commit is contained in:
voussoir 2020-08-20 13:19:56 -07:00
parent 2e9d8cf82a
commit 983d4ddc1e

View file

@ -9,12 +9,12 @@ files2 = set(os.listdir(dir2))
print(f'In "{dir1}" but not in "{dir2}":') print(f'In "{dir1}" but not in "{dir2}":')
print('=============================') print('=============================')
for discrepancy in files1.difference(files2): for discrepancy in sorted(files1.difference(files2)):
print(discrepancy) print(discrepancy)
print() print()
print(f'In "{dir2}" but not in "{dir1}":') print(f'In "{dir2}" but not in "{dir1}":')
print('=============================') print('=============================')
for discrepancy in files2.difference(files1): for discrepancy in sorted(files2.difference(files1)):
print(discrepancy) print(discrepancy)