FilterPath

class FilterPath(wrappedDelegate: Path, wrappedFileSystem: FilterFileSystem)

A FilterPath contains another Path, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.

Okio's Path is a final value type, so unlike Java NIO we cannot return a true path subtype here. Instead this class keeps the same wrapper metadata and exposes helper functions used by the mock filesystem ports.

Constructors

Link copied to clipboard
constructor(wrappedDelegate: Path, wrappedFileSystem: FilterFileSystem)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun compareTo(other: Path): Int
Link copied to clipboard
fun endsWith(other: String): Boolean
fun endsWith(other: Path): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getDelegate(): Path

Get the underlying wrapped path.

Link copied to clipboard
fun getFileName(): Path?
Link copied to clipboard
Link copied to clipboard
fun getName(index: Int): Path
Link copied to clipboard
Link copied to clipboard
fun getParent(): Path?
Link copied to clipboard
fun getRoot(): Path?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
fun iterator(): Iterator<Path>
Link copied to clipboard
fun normalize(): Path
Link copied to clipboard
fun relativize(other: Path): Path
Link copied to clipboard
fun resolve(other: String): Path
fun resolve(other: Path): Path
Link copied to clipboard
fun resolveSibling(other: String): Path
fun resolveSibling(other: Path): Path
Link copied to clipboard
fun startsWith(other: Path): Boolean
Link copied to clipboard
fun subpath(beginIndex: Int, endIndex: Int): Path
Link copied to clipboard
fun toAbsolutePath(): Path
Link copied to clipboard
Link copied to clipboard
fun toRealPath(): Path
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toUri(): String
Link copied to clipboard
fun unwrap(): Path