public class NioPathKt
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
combineSafe(java.nio.file.Path $receiver,
java.nio.file.Path 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 |
combineSafe(java.io.File $receiver,
java.nio.file.Path 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.lang.String |
getExtension(java.nio.file.Path $receiver)
Finds an extension of the given Path
|
static java.nio.file.Path |
normalizeAndRelativize(java.nio.file.Path $receiver)
Remove all redundant
. and .. path elements. Leading .. are also considered redundant. |
public static java.lang.String getExtension(java.nio.file.Path $receiver)
Finds an extension of the given Path
Extension is a substring of a Path.fileName after last dot
public static java.io.File combineSafe(java.nio.file.Path $receiver,
java.nio.file.Path 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.nio.file.Path normalizeAndRelativize(java.nio.file.Path $receiver)
Remove all redundant . and .. path elements. Leading .. are also considered redundant.
public static java.io.File combineSafe(java.io.File $receiver,
java.nio.file.Path 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)