code: def tag(self, path, name):
      '''
        Change name associated with path
      '''
  
      if not path[len(path) - 1] == '/':
        path += '/'
  
      config = self.get_config()
      folder = self.find_folder({
        'path' : path
      }, config)
  
      if not folder:
        raise custom_errors.FileNotInConfig(path)
  
      old_name = folder['label']
      folder['label'] = name
      
      dir_config = self.adapter.get_dir_config(path)
      dir_config['label'] = name
      self.adapter.set_dir_config(dir_config)
  
      self.set_config(config)
      # self.restart
  
      return old_namf tag(self, path, name):
      '''
        Change name associated with path
      '''
  
      if not path[len(path) - 1] == '/':
        path += '/'
  
      config = self.get_config()
      folder = self.find_folder({
        'path' : path
      }, config)
  
      if not folder:
        raise custom_errors.FileNotInConfig(path)
  
      old_name = folder['label']
      folder['label'] = name
      
      dir_config = self.adapter.get_dir_config(path)
      dir_config['label'] = name
      self.adapter.set_dir_config(dir_config)
  
      self.set_config(config)
      # self.restart
  
      return old_name
docs: Change name associated with path