UnexpectedDirectory

exception UnexpectedDirectory(path)[source]

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

Instantiate the exception.

Parameters:

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