sealed trait Path[+A] extends AnyRef
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
https://www.ietf.org/rfc/rfc3986.txt chapter 3.3, Path
- Alphabetic
- By Inheritance
- Path
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def /(segment: Option[String]): Path[String]
-
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: String): Path[String]
Ensure that path always is suffixed with '/'
- def //(segment: Option[String]): Path[String]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def dirName(implicit ev: <:<[A, FsObject]): Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- Path → AnyRef → Any
- def fileName(implicit ev: <:<[A, FsObject]): Option[String]
- def fullName(implicit ev: <:<[A, FsObject]): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- Path → AnyRef → Any
- def isDir(implicit ev: <:<[A, FsObject]): Boolean
- def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastModified(implicit ev: <:<[A, FsObject]): Option[Instant]
- def lastSegment: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nioPath: java.nio.file.Path
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parentPath: Plain
- def plain: Plain
- def relative: RootlessPath[String]
- def size(implicit ev: <:<[A, FsObject]): Option[Long]
- def storageClass[SC](implicit storageClassLookup: Aux[A, SC]): Option[SC]
- def stripSlashSuffix: Path[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Path → AnyRef → Any
-
def
up: Plain
Goes one level "up" and looses any information about the underlying path representation
- def value: String
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated