code: def clone(self):
          
          base_dir = '/'.join(self.path.split('/')[:-2])
          try:
              os.makedirs(base_dir, 0o700)
          except OSError:
              # Raises an error exception if the leaf directory already exists.
              pass
  
          self._cmd(['git', 'clone', self._clone_url, self.path], cwd=os.getcwd())
docs: Clones a directory based on the clone_url and plugin_name given to the
          constructor. The clone will be located at self.path.