Return an error if the path is not a directory.
<mrdocs/Support/Path.hpp>
Expected<void> requireDirectory(std::string_view pathName);