owncloud/owncloud.py
def is_shared(self, path):
        """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: ResponseError in case an HTTP error status was returned
        """
        # make sure that the path exist - if not, raise ResponseError
        self.file_info(path)
        try:
            result = self.get_shares(path)
            if result:
                return (len(result) > 0)
        except ResponseError as e:
            if e.status_code != 404:
                raise e
            return False
        return False
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: ResponseError in case an HTTP error status was returned
        
Checks whether a path is already shared
Checks whether a path is already shared
def is_shared(self, path):
        self.file_info(path)
        try:
            result = self.get_shares(path)
            if result:
                return (len(result) > 0)
        except ResponseError as e:
            if e.status_code != 404:
                raise e
            return False
        return False
def is_shared ( self , path ) : self . file_info ( path ) try : result = self . get_shares ( path ) if result : return ( len ( result ) > 0 ) except ResponseError as e : if e . status_code != 404 : raise e return False return False
Checks whether a path is already shared
Checks whether a path is already shared
"""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: ResponseError in case an HTTP error status was returned
        """ # make sure that the path exist - if not, raise ResponseError
True if the path is already shared, else False
True if the path is already shared else False
ResponseError in case an HTTP error status was returned
ResponseError in case an HTTP error status was returned
self
path
path to the share to be checked
path to the share to be checked