exist_path_validate#

cherab.lhd.emc3.repository.utility.exist_path_validate(path: Path | str) PathSource#

Validate exist path and return Path instance.

This checks the path with or w/o .txt suffix and return the existing one.

Parameters:
pathPath | str

Path to a text file.

Returns:
Path

Path to the existing text file.