spring-framework / org.springframework.core.io / PathResource / createRelative

createRelative

open fun createRelative(relativePath: String): Resource

This implementation creates a PathResource, applying the given path relative to the path of the underlying file of this resource descriptor.

See Also
java.nio.file.Path#resolve(String)