PathCodec with URI-encoded segments.
Returns the first named segment of the given path.
Rebases absolute paths onto the provided absolute directory, so
rebaseA(/baz)(/foo/bar) becomes /baz/foo/bar.
Removes the given prefix from an absolute path, if present.
This is completely unsafe and should be phased out.
This is completely unsafe and should be phased out.
Sandboxing is meant to prevent ending up with paths such as /foo/../../.. and by
calling get on the Option we are wishful thinking this problem away