code: def directory_complete(self, text, line, begidx, endidx):
          
          return [filename for filename in self.filename_complete(text, line, begidx, endidx) if filename[-1] == '/']
docs: Figure out what directories match the completion.