Hmm, I saw that suggestion working in a different manner:
searching directories (either on the fly or updating at
intervals depending on number of directories and how rapidly
the system needs to respond to changes), and building
a paths data structure from that, which could then be
used to verify the user-input as in Ovid's example.