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