def url_to_path(value):

    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
    value = mediaurl_re.sub('', value)
    return value
Change URL to PATH.
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/url_to_path