code: def is_repository_directory(cls, path):
          # type: (str) -> bool
          
          logger.debug('Checking in %s for %s (%s)...',
                       path, cls.dirname, cls.name)
          return os.path.exists(os.path.join(path, cls.dirname))
docs: Return whether a directory path is a repository directory.