Skip to main content

Module utils

Module utils 

Source

Traits§

ToSelector

Functions§

create_dir
Creates a directory and all of its parent components if they are missing.
is_same_site
Checks if two URLs belong to the same site.
normalize_origin
Normalizes the origin of a request’s URL.
validate_output_dir
Validates that the parent directory of a given file path exists, creating it if necessary.