PathBuf

Path

Implements a Node-style PathIntrinsic with a Kotlin multi-platform Path object.

Types

Link copied to clipboard

Factory for path objects.

Properties

Link copied to clipboard
open override val base: String

Describes the "basename" of the desired path, which is the combined portion of the file name and file extension. If this property (base) is specified, name and ext are used instead.

Link copied to clipboard
open override val dir: String

Holds the base directory, or directory prefix, which is applied to the rendered path; if dir is specified, any present value for root is ignored.

Link copied to clipboard
open override val ext: String

Describes the file extension to be used or which is present for the path; if specified, name is also consulted, and any present value for base is ignored.

Link copied to clipboard
open override val isAbsolute: Boolean

Determine if the underlying path is an absolute expression of the path segments.

Link copied to clipboard
open override val length: Int
Link copied to clipboard
open override val name: String

Describes the naked "name" of the file, without any file extension; if specified, ext is also consulted, and any value for base is ignored.

Link copied to clipboard
open override val root: String

Holds the root directory, if any, of the path. Only one of root or dir may be specified; if both are provided, dir wins.

Link copied to clipboard
open override val style: PathStyle

Describes the style of the path, which is used to determine how the path is rendered.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Path): Int
Link copied to clipboard
open override fun copy(): Path

Creates a new path object with the same properties as this one.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Char
Link copied to clipboard
open override fun getMember(key: String?): Any?
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun hasMember(key: String): Boolean
Link copied to clipboard
open override fun join(vararg paths: Path): String
open override fun join(other: Iterable<String>): String
open override fun join(first: String, vararg rest: String): String

Join this path by the delimiter for this path type with another path, yielding a path composed of both.

Link copied to clipboard
open override fun putMember(key: String?, value: Value?)
Link copied to clipboard
open override fun removeMember(key: String?): Boolean
Link copied to clipboard
open override fun split(): Sequence<String>

Split this path by the delimiter for this path type, yielding each string section as a sequence entry.

Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
open override fun toJavaPath(): Path

Utility to convert this Node-style path to a Java path.

Link copied to clipboard
open override fun toKotlinPath(): Path

Utility to convert this Node-style path to a Kotlin path.

Link copied to clipboard
open override fun toString(): String