pathWithTrailingSlash

open override fun pathWithTrailingSlash(): String

Similar to path, but it also includes a trailing path. This is useful when building descendant paths as there is no special case needed for the root Game.

Game.path and Game.pathWithTrailingSlash both return /.

For all other resource types, [pathWithTrailingSlash] != [path] and therefore isn't a valid path. This is in contrast to filesystems. where a directory may optionally have a trailing slash.