strip_hostname

atomate2.utils.path.strip_hostname(uri_path)[source]

Strop the hostname from a URI path.

For example, “fileserver.host.com:/full/path/of/dir_name” will be transformed to “/full/path/of/dir_name”.

Parameters:

uri_path (str or Path) – A URI path.

Returns:

The path without the hostname information.

Return type:

str