UnexpectedDirectoryError

exception UnexpectedDirectoryError(path: Path)[source]

Thrown if a directory path is given where file path should have been.

Instantiate the exception.

Parameters:

path – The path to a directory that should have been a file.