Module pathutils

Module pathutils 

Source
Expand description

Reimplement some Path handling code: The one in std is not available when running in WASM!

This is not helped by us using URLs in place of paths sometimes.

Functionsยง

clean_path
Return a clean up path without unnecessary . and .. directories in it.
dirname
Return the part of Path before the last path separator.
is_absolute
is_url
Check whether a Path is actually an URL.
join
Join a path to a base_path, handling URLs in both, matching up path separators, etc.