code: def is_shared(self, path):
          
          # make sure that the path exist - if not, raise HTTPResponseError
          self.file_info(path)
          try:
              result = self.get_shares(path)
              if result:
                  return len(result) > 0
          except OCSResponseError as e:
              if e.status_code != 404:
                  raise e
              return False
          return False
docs: Checks whether a path is already shared
  
          :param path: path to the share to be checked
          :returns: True if the path is already shared, else False
          :raises: HTTPResponseError in case an HTTP error status was returned