I was comparing a master drawing list with a list of hundreds PDFs getting delivered on a project.
I got the file list from CMD with this:
dir /s /b > c:\PDFs\dir.txt
Parsed out that text in Dynamo, etc…
Here is how to compare the lists for duplicates and mismatches:
This showed that one PDF was missing and one extra PDF existed.