public class PathKt
| Modifier and Type | Method and Description |
|---|---|
static Assert<kotlin.Array[]> |
bytes(Assert<? extends java.nio.file.Path> $receiver)
Assert on file bytes
|
static void |
isDirectory(Assert<? extends java.nio.file.Path> $receiver,
java.nio.file.LinkOption options)
Assert that the path is a directory.
|
static void |
isExecutable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is an executable.
|
static void |
isHidden(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is hidden.
|
static void |
isReadable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is readable.
|
static void |
isRegularFile(Assert<? extends java.nio.file.Path> $receiver,
java.nio.file.LinkOption options)
Assert that the path is a regular file.
|
static void |
isSameFileAs(Assert<? extends java.nio.file.Path> $receiver,
java.nio.file.Path expected)
Assert that the path points to the same object as the other path.
|
static void |
isSymbolicLink(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is a symbolic link.
|
static void |
isWritable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is writable link.
|
static Assert<java.util.List> |
lines(Assert<? extends java.nio.file.Path> $receiver,
java.nio.charset.Charset charset)
Assert on file lines
|
public static Assert<java.util.List> lines(Assert<? extends java.nio.file.Path> $receiver, java.nio.charset.Charset charset)
Assert on file lines
charset - charset to use when reading filepublic static Assert<kotlin.Array[]> bytes(Assert<? extends java.nio.file.Path> $receiver)
Assert on file bytes
public static void isRegularFile(Assert<? extends java.nio.file.Path> $receiver, java.nio.file.LinkOption options)
Assert that the path is a regular file.
options - indicating how symbolic links are handledpublic static void isDirectory(Assert<? extends java.nio.file.Path> $receiver, java.nio.file.LinkOption options)
Assert that the path is a directory.
options - indicating how symbolic links are handledpublic static void isExecutable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is an executable.
public static void isHidden(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is hidden.
public static void isReadable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is readable.
public static void isSymbolicLink(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is a symbolic link.
public static void isWritable(Assert<? extends java.nio.file.Path> $receiver)
Assert that the path is writable link.
public static void isSameFileAs(Assert<? extends java.nio.file.Path> $receiver, java.nio.file.Path expected)
Assert that the path points to the same object as the other path.
expected - the path which the actual is compared to.