public class PathKt
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
combineSafe(java.io.File $receiver,
java.lang.String relativePath)
Append a relativePath safely that means that adding any extra
.. path elements will not let
access anything out of the reference directory (unless you have symbolic or hard links or multiple mount points) |
static java.io.File |
normalizeAndRelativize(java.io.File $receiver)
Remove all redundant
. and .. path elements. Leading .. are also considered redundant. |
public static java.io.File combineSafe(java.io.File $receiver,
java.lang.String relativePath)
Append a relativePath safely that means that adding any extra .. path elements will not let
access anything out of the reference directory (unless you have symbolic or hard links or multiple mount points)
public static java.io.File normalizeAndRelativize(java.io.File $receiver)
Remove all redundant . and .. path elements. Leading .. are also considered redundant.