strip_hostname#

atomate2.utils.path.strip_hostname(uri_path: str | Path) str[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_pathstr or Path

A URI path.

Returns
str

The path without the hostname information.