The abstract base for absolute and relative paths within Laika's virtual path abstraction.
A path in Laika is always virtual and not pointing to a path in the file system, even if the data was obtained by scanning a directory. This is because in Laika transformation input can come from different sources, e.g. from two different directories merged into a single virtual tree in memory with some additional documents added programmatically without any file system reference.
Attributes
- Companion
- object
- Source
- paths.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericPathclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Pathobject Root.typeclass Segmentstrait RelativePathclass CurrentDocumentobject CurrentTree.typeclass Parentclass Segmentstrait SegmentsShow all
Members list
Type members
Types
Attributes
- Source
- paths.scala
Value members
Inherited methods
Combines this path with the specified relative path.
Combines this path with the specified relative path.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Creates a new path with the specified name as an immediate child of this path.
Creates a new path with the specified name as an immediate child of this path.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
The base name of this path, without the suffix (if present).
The base name of this path, without the suffix (if present).
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Attributes
- Inherited from:
- Equals
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
The fragment part of the path (after a #
in the last segment), or None
if this path does not have a fragment component.
The fragment part of the path (after a #
in the last segment), or None
if this path does not have a fragment component.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
The local name of this path, without the optional fragment part, but including the suffix if present.
The local name of this path, without the optional fragment part, but including the suffix if present.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
The suffix of None
if this path name does not have a file suffix separated by a .
.
The suffix of None
if this path name does not have a file suffix separated by a .
.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Returns a new path that replaces the base name with the specified new name while keeping both, suffix and fragment, in case they are present.
Returns a new path that replaces the base name with the specified new name while keeping both, suffix and fragment, in case they are present.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Returns a new path that either replaces the existing fragment component with the specified one or appends it if this path does not have a component yet.
Returns a new path that either replaces the existing fragment component with the specified one or appends it if this path does not have a component yet.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Returns a new path that either replaces the existing suffix with the specified one or appends it if this path does not have a suffix yet.
Returns a new path that either replaces the existing suffix with the specified one or appends it if this path does not have a suffix yet.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Returns a new path that discards this path's fragment, if present.
Returns a new path that discards this path's fragment, if present.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala
Returns a new path that discards this path's suffix, if present.
Returns a new path that discards this path's suffix, if present.
Attributes
- Inherited from:
- GenericPath
- Source
- paths.scala