Class ResolvePathAbsolute
Object
ResolvePathAbsolute
More advanced implementation of
Path.resolve(java.nio.file.Path)
.
It will always return an absolute-path.
If the base-path is a file, rather than a directory, it will consider only the directory component, and otherwise proceed.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
LikePath.resolve(java.nio.file.Path)
but with some additional quirks.
-
Method Details
-
resolve
LikePath.resolve(java.nio.file.Path)
but with some additional quirks.Please see the class-description.
- Parameters:
basePath
- the base path onto whichrelativePathToJoin
is joined. It it's a path to a file, only the directory component is used.toJoin
- normally a relative-path (relative tobasePath
but it can also be an absolute-path.- Returns:
- an absolute-path to a combination of
basePath
andtoJoin
, ortoJoin
alone if it's absolute.
-