urls
normalize_url(url)
¶
S3- aware URL normalization.
For local paths, this is just os.path.normpath.
For S3 URLs, this just strips trailing slashes. Notably, we do NOT want to
collapse :// into :/.
Source code in fractal_server/urls.py
6 7 8 9 10 11 12 13 14 15 16 17 | |
url_is_relative_to(*, url, base)
¶
S3-aware replacement for Path(url).is_relative_to(base).
Source code in fractal_server/urls.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
url_join(base, *parts)
¶
S3-aware replacement for os.path.join.
Source code in fractal_server/urls.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |