IOobject has objectPath() to obtain the complete path. It would be nice to have a relative (to the ) path, especially for warning/error messages.