Gets the path infos for specified path.
The path.
The configuration.
If null (Nothing in Visual Basic) or empty is specified for path, the root path info should be returned