blark.util.fix_case_insensitive_path

blark.util.fix_case_insensitive_path(path: str | Path) Path[source]

Match a path in a case-insensitive manner.

Required on Linux to find files in a case-insensitive way. Not required on OSX/Windows, but platform checks are not done here.

Parameters:
pathpathlib.Path or str

The case-insensitive path

Returns:
pathpathlib.Path

The case-corrected path.

Raises:
FileNotFoundError

When the file can’t be found