Path

sealed trait Path[+A]

The path segment of a URI. It is parameterized on the type representing the path. This can be a plain String, or a storage provider specific type.

The path segment of a URI. It is parameterized on the type representing the path. This can be a plain String, or a storage provider specific type.

Examples of storage provider types would be software.amazon.awssdk.services.s3.internal.resource.S3ObjectResource for S3, com.google.storage.Blob for GCS, etc.

See also
Companion
object
class Object
trait Matchable
class Any
class AbsolutePath[A]
class RootlessPath[A]

Value members

Abstract methods

def segments: Chain[String]

Concrete methods

def /(segment: String): Path[String]

Compose with string to form a new Path

Compose with string to form a new Path

The underlying representation must be String in order for the representation and the path to be kept in sync. Use addSegment to modify paths backed by non-String types

See also

addSegment

def /(segment: Option[String]): Path[String]
def //(segment: Option[String]): Path[String]
def //(segment: String): Path[String]

Ensure that path always is suffixed with '/'

Ensure that path always is suffixed with '/'

def absolute: AbsolutePath[String]
def addSegment[B](segment: String, representation: B): Path[B]

Adds a segment to the path while ensuring that the segments and path representation are kept in sync

Adds a segment to the path while ensuring that the segments and path representation are kept in sync

If you're just working with String paths, see /

def as[B](b: B): Path[B]
def dirName(ev: A <:< FsObject): Option[String]
override def equals(obj: Any): Boolean
Definition Classes
Any
def fileName(ev: A <:< FsObject): Option[String]
def fullName(ev: A <:< FsObject): String
override def hashCode(): Int
Definition Classes
Any
def isDir(ev: A <:< FsObject): Boolean
def isEmpty: Boolean
def lastModified(ev: A <:< FsObject): Option[Instant]
def lastSegment: Option[String]
def nioPath: Path
def plain: Plain
def relative: RootlessPath[String]
def size(ev: A <:< FsObject): Option[Long]
def storageClass[SC](storageClassLookup: Aux[A, SC]): Option[SC]
override def toString: String
Definition Classes
Any
def up: Plain

Goes one level "up" and looses any information about the underlying path representation

Goes one level "up" and looses any information about the underlying path representation

def value: String