zpath

emmet.archival.utils.zpath(target_path)

Wrap monty’s zpath to ensure it always returns a .Path.

Return type:

Path

Parameters:

target_path (str | Path)

Parameters

target_path : str or Path

Returns

Path corresponding to the input path, returning the appropriate zip extension if that path exists.