convert_to_path
- pylluminator.utils.convert_to_path(input_path: str | PathLike | MultiplexedPath) Path | PosixPath
Return the input_path in a PathLike format.
If it’s a string or a MultiplexedPath, convert it to a PathLike object. Expand user if it’s a string or a pathLike.
- Parameters:
input_path (str | os.PathLike | MultiplexedPath) – path to convert
- Returns:
the input path as a Path or PosixPath
- Return type:
Path | PosixPath