Logo Search packages:      
Sourcecode: harvestman version File versions  Download package

def HarvestMan::urlparser::HarvestManUrlParser::get_url_directory (   self  ) 

Return the directory path (url minus its filename if any) of the
url 

Definition at line 566 of file urlparser.py.

00566                                :
        """ Return the directory path (url minus its filename if any) of the
        url """
        
        # get the directory path of the url
        fulldom = self.get_full_domain()
        urldir = fulldom

        if self.dirpath:
            newpath = "".join((self.URLSEP, "".join([ x+'/' for x in self.dirpath])))
            urldir = "".join((fulldom, newpath))

        return urldir


Generated by  Doxygen 1.6.0   Back to index