Path

final class Path

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
Source:
Path.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def /(name: String): Path
Source:
Path.scala
def /(path: Path): Path
Source:
Path.scala
def endsWith(path: String): Boolean
Source:
Path.scala
def endsWith(path: Path): Boolean
Source:
Path.scala
override def equals(that: Any): Boolean
Definition Classes
Any
Source:
Path.scala
override def hashCode: Int
Definition Classes
Any
Source:
Path.scala
def names: Seq[Path]
Source:
Path.scala
def relativize(path: Path): Path
Source:
Path.scala
def resolve(name: String): Path
Source:
Path.scala
def resolve(path: Path): Path
Source:
Path.scala
def startsWith(path: Path): Boolean
Source:
Path.scala
override def toString: String
Definition Classes
PathApi -> Any
Source:
Path.scala

Concrete fields

val toNioPath: Path
Source:
Path.scala