def makeShareUrl(self, full_path, passwd):
        """Make a share url of directory

            >>> nd.makeShareUrl('/Picture/flower.png', PASSWORD)

        Args:
            full_path:
              The full path of directory to get share url.
              Should be end with '/'.
              ex) /folder/
            passwd:
              Access password for shared directory
        Returns:
            URL:
              share url for a directory
            False:
              Failed to share a directory
        """
        if full_path[-1] is not '/':
            full_path += '/'

        data = {'_callback': 'window.__jindo_callback._347',
                'path': full_path,
                'passwd': passwd,
                'userid': self.user_id,
                'useridx': self.useridx,
                }

        s, metadata = self.GET('shareUrl', data)

        if s:
            print "URL: %s" % (metadata['href'])
            return metadata['href']
        else:
            print "Error makeShareUrl: %s" % (metadata)
            return False
def makeShareUrl ( self , full_path , passwd ) : if full_path [ - 1 ] is not '/' : full_path += '/' data = { '_callback' : 'window.__jindo_callback._347' , 'path' : full_path , 'passwd' : passwd , 'userid' : self . user_id , 'useridx' : self . useridx , } s , metadata = self . GET ( 'shareUrl' , data ) if s : print "URL: %s" % ( metadata [ 'href' ] ) return metadata [ 'href' ] else : print "Error makeShareUrl: %s" % ( metadata ) return False
Make a share url of directory

            >>> nd.makeShareUrl('/Picture/flower.png', PASSWORD)

        Args:
            full_path:
              The full path of directory to get share url.
              Should be end with '/'.
              ex) /folder/
            passwd:
              Access password for shared directory
        Returns:
            URL:
              share url for a directory
            False:
              Failed to share a directory