PathFactory

interface PathFactory

Path Factory

Describes the layout of static methods which can be used to create Path instances; paths of this type are compliant with Node's path built-in module.

Inheritors

Functions

Link copied to clipboard
abstract fun from(path: Path): Path

Effectively copies another Node-compliant Path type.

abstract fun from(path: File): Path

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

abstract fun from(path: Path): Path

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

abstract 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.

abstract fun from(path: Path): Path

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

abstract fun from(path: String, style: PathStyle? = null): Path

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

abstract 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.