Companion

Node API: Path Factory

Defines methods for creating paths from various primitive values, including String instances, and Kotlin and Java standard path types.

Functions

Link copied to clipboard
open override fun from(path: Path): Path

Effectively copies another Node-compliant Path type.

open override fun from(path: File): Path

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

open override fun from(path: Path): Path

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

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

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

open override fun from(path: Path): Path

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

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

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

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

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