prepare for preliminary wildcard matching on directories