def url2tmp(self, root, url):
        """ convert url path to filename """
        filename = url.rsplit('/', 1)[-1]
        return os.path.join(root, filename)
def url2tmp ( self , root , url ) : filename = url . rsplit ( '/' , 1 ) [ - 1 ] return os . path . join ( root , filename )
convert url path to filename