Possibly a premature optimization, but checking `Directory.Exists()` twice for every entry in `pathsList` seems like it's worth avoiding.