Find directories by name, path, or contents

The simplest way to search for directories is by matching text in their name or path, by querying the files table. The files table has an entry for every file and directory scanned, and includes these text fields: