Path

final
class Path extends PathApi

Path to a file or directory on a file system.

The path API is inspired by the java.nio.file.Path API. On the JVM, a NIO path can be converted to an FS2 path via Path.fromNioPath(p) and likewise an FS2 path can be converted to a NIO path via p.toNioPath.

(When using this class on Node.js, the fromNioPath and toNioPath methods are not accessible.)

Generally, most methods have the same behavior as their NIO counterparts, though there are some slight differences -- e.g., resolve normalizes.

Companion
object
trait PathApi
class Object
trait Matchable
class Any

Value members

Concrete methods

def /(name: String): Path
def /(path: Path): Path
def endsWith(path: String): Boolean
def endsWith(path: Path): Boolean
override
def equals(that: Any): Boolean
Definition Classes
Any
def extName: String
override
def hashCode: Int
Definition Classes
Any
def isAbsolute: Boolean
def names: Seq[Path]
def parent: Option[Path]
def relativize(path: Path): Path
def resolve(name: String): Path
def resolve(path: Path): Path
def resolveSibling(name: String): Path
def startsWith(path: String): Boolean
def startsWith(path: Path): Boolean
override
def toString: String
Definition Classes
PathApi -> Any

Concrete fields

val toNioPath: Path