QFileInfo absolutePath gives the parent path for paths that don't have a trailing slash.
Its absoluteFilePath method mostly does what we want, but adds a trailing slash whether or not you want one.
We've got away with this in testing as FixedPath adds a trailing slash to the application name and I guess I ended up with explicit trailing slashes in the paths I tested.