pub fn split(url: &str, exclude_trailing_slash: bool) -> (String, String)Expand description
Split a URL into its parent directory and a child directory.
Args: url: A relative or absolute URL exclude_trailing_slash: Strip off a final ‘/’ if it is part of the path (but not if it is part of the protocol specification)
Returns: (parent_url, child_dir). child_dir may be the empty string if we’re at the root.