from

open override fun from(path: String, style: PathStyle?): Path

Path from String

Create a Node-style parsed Path object from a string path; this method uses the active path style if none is provided.

Parameters

path

Path to parse

style

Path style to use; if not specified; the default path style is used


open override fun from(first: String, vararg rest: String): Path

Path from String Segments

Create a Node-style parsed Path object from string segments; this method uses the active path style.

Parameters

first

First portion of the path

rest

Remaining portions of the path


open override fun from(seq: Sequence<String>): Path

Path from String Sequence

Create a Node-style parsed Path object from string segments in a sequence; this method uses the active path style.

Parameters

seq

Sequence to parse


open override fun from(path: Path): Path

Path from Kotlin Path

Create a Node-style parsed Path object from a Kotlin path.

Parameters

path

Path to parse


open override fun from(path: Path): Path

Path from Java Path

Create a Node-style parsed Path object from a Java NIO path.

Parameters

path

Path to parse


open override fun from(path: File): Path

Path from Java File

Create a Node-style parsed Path object from a Java I/O file.

Parameters

path

Path to parse


open override fun from(path: Path): Path

Path from Node Path

Effectively copies another Node-compliant Path type.

Return

A new Path instance with the same path information

Parameters

path

Node-compliant path type to copy