allBytes |
Maps this assertion to an assertion over all bytes of this subject path . fun <T : Path> Builder<T>.allBytes(): Builder<ByteArray> |
allLines |
Maps this assertion to an assertion over all lines of this subject path decoded using the provided charset. fun <T : Path> Builder<T>.allLines(charset: Charset = Charsets.UTF_8): Builder<List<String>> |
childFile |
Maps this assertion to an assertion on a specific child name of the subject. fun <T : File> Builder<T>.childFile(name: String): Builder<File> |
childFiles |
Maps this assertion to an assertion on the child files of the subject. val <T : File> Builder<T>.childFiles: Builder<List<File>> |
endsWith |
Asserts that the subject end with the provided path. infix fun <T : Path> Builder<T>.endsWith(other: Path): Builder<T>
Asserts that the subject end with the provided path string. infix fun <T : Path> Builder<T>.endsWith(other: String): Builder<T> |
exists |
Asserts that the file exists. fun <T : File> Builder<T>.exists(): Builder<T>
Asserts that the subject exists, handling symbolic links according to the provided options fun <T : Path> Builder<T>.exists(vararg options: LinkOption = emptyArray()): Builder<T> |
extension |
Maps this assertion to an assertion on the file extension (not including the dot) or empty string if it not have one. val <T : File> Builder<T>.extension: Builder<String> |
fileName |
Maps this assertion to an assertion on the path representing the name of the subject. val <T : Path> Builder<T>.fileName: Builder<Path> |
isAbsent |
Asserts that an fun <T> Builder<Optional<T>>.isAbsent(): Builder<Optional<T>> |
isAbsolute |
Asserts that the subject is an absolute path. fun <T : Path> Builder<T>.isAbsolute(): Builder<T> |
isDirectory |
Asserts that the file is a directory. fun <T : File> Builder<T>.isDirectory(): Builder<T>
Asserts that the subject is a directory, handling symbolic links according to the provided options. fun <T : Path> Builder<T>.isDirectory(vararg options: LinkOption = emptyArray()): Builder<T> |
isExecutable |
Asserts that the file is executable. fun <T : File> Builder<T>.isExecutable(): Builder<T> |
isNotDirectory |
Asserts that the file is not a directory. fun <T : File> Builder<T>.isNotDirectory(): Builder<T> |
isNotExecutable |
Asserts that the file is not executable. fun <T : File> Builder<T>.isNotExecutable(): Builder<T> |
isNotReadable |
Asserts that the file is not readable. fun <T : File> Builder<T>.isNotReadable(): Builder<T> |
isNotRegularFile |
Asserts that the file is not a regular file. fun <T : File> Builder<T>.isNotRegularFile(): Builder<T> |
isNotWritable |
Asserts that the file is not writable. fun <T : File> Builder<T>.isNotWritable(): Builder<T> |
isPresent |
Asserts that an fun <T> Builder<Optional<T>>.isPresent(): Builder<T> |
isReadable |
Asserts that the file is readable. fun <T : File> Builder<T>.isReadable(): Builder<T> |
isRegularFile |
Asserts that the file is a regular file. fun <T : File> Builder<T>.isRegularFile(): Builder<T>
Asserts that the subject is a regular file, handling symbolic links according to the provided options. fun <T : Path> Builder<T>.isRegularFile(vararg options: LinkOption = emptyArray()): Builder<T> |
isSymbolicLink |
Asserts that the subject is a symbolic link. fun <T : Path> Builder<T>.isSymbolicLink(): Builder<T> |
isWritable |
Asserts that the file is writable. fun <T : File> Builder<T>.isWritable(): Builder<T> |
lastModified |
Maps this assertion to an assertion on the last modified of the subject. val <T : File> Builder<T>.lastModified: Builder<Long> |
length |
Maps this assertion to an assertion on the file size of the subject. val <T : File> Builder<T>.length: Builder<Long> |
lines |
Maps this assertion to an assertion on the lines of the subject decoded using the provided charset. fun <T : File> Builder<T>.lines(charset: Charset = Charsets.UTF_8): Builder<List<String>> |
name |
Maps this assertion to an assertion on the name of the file of the subject. val <T : File> Builder<T>.name: Builder<String> |
nameWithoutExtension |
Maps this assertion to an assertion on the file name without the extension. val <T : File> Builder<T>.nameWithoutExtension: Builder<String> |
notExists |
Asserts that the file not exists. fun <T : File> Builder<T>.notExists(): Builder<T> |
parent |
Maps this assertion to an assertion on the parent file or val <T : File> Builder<T>.parent: Builder<String?> |
parentFile |
Maps this assertion to an assertion on the parent file or val <T : File> Builder<T>.parentFile: Builder<File?> |
propertiesAreEqualTo |
Asserts that all properties of the subject match those of other according to either contentEquals in the case of array properties or isEqualTo in other cases. infix fun <T : Any> Builder<T>.propertiesAreEqualTo(other: T): Builder<T> |
resolve |
Maps this assertion to an assertion of this subject resolved with the provided path. infix fun <T : Path> Builder<T>.resolve(other: Path): Builder<Path>infix fun <T : Path> Builder<T>.resolve(other: String): Builder<Path> |
size |
Maps this assertion to an assertion over the byte size of the subject path. val <T : Path> Builder<T>.size: Builder<Long> |
startsWith |
Asserts that the subject starts with the provided path. infix fun <T : Path> Builder<T>.startsWith(other: Path): Builder<T>infix fun <T : Path> Builder<T>.startsWith(other: String): Builder<T> |
text |
Maps this assertion to an assertion on the complete text of the subject decoded using the provided charset. fun <T : File> Builder<T>.text(charset: Charset = Charsets.UTF_8): Builder<String> |
toFile |
Maps this assertion to an assertion on the file object representing this subject. fun <T : Path> Builder<T>.toFile(): Builder<File> |
toNullable |
Maps an assertion on a Java fun <T> Builder<Optional<T>>.toNullable(): Builder<T?> |
toPath |
Maps this assertion to an assertion on a path object representing this subject. fun <T : File> Builder<T>.toPath(): Builder<Path> |