Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Members list
Value members
Concrete methods
Combines two paths together to create a new one. In the process it will remove all extra slashes from the final path, leaving only the ones that are at the ends.
Combines two paths together to create a new one. In the process it will remove all extra slashes from the final path, leaving only the ones that are at the ends.
Attributes
Appends a segment at the end of the path. To append a trailing slash use an empty string.
Appends a segment at the end of the path. To append a trailing slash use an empty string.
Attributes
Prepends the path with the provided segment. To prepend a leading slash use an empty string.
Prepends the path with the provided segment. To prepend a leading slash use an empty string.
Attributes
Appends a trailing slash to the path
Appends a trailing slash to the path
Attributes
Drops segments from the beginning of the path.
Drops segments from the beginning of the path.
Attributes
Drops segments from the end of the path.
Drops segments from the end of the path.
Attributes
Drops the trailing slash if available
Drops the trailing slash if available
Attributes
Encodes the current path into a valid string
Encodes the current path into a valid string
Attributes
Returns a new path that contains only the inital segments, leaving the last segment.
Returns a new path that contains only the inital segments, leaving the last segment.
Attributes
Returns a the last element of the path. If the path contains a trailing
slash, None
will be returned.
Returns a the last element of the path. If the path contains a trailing
slash, None
will be returned.
Attributes
Returns the last segment of the path
Returns the last segment of the path
Attributes
Checks if the path contains a leading slash.
Checks if the path contains a leading slash.
Attributes
Checks if the path is not equal to ""
Checks if the path is not equal to ""
Attributes
Creates a new path from this one with it's segments reversed.
Creates a new path from this one with it's segments reversed.
Attributes
Checks if the path starts with the provided path
Checks if the path starts with the provided path
Attributes
Creates a new path with the provided n
initial segments.
Creates a new path with the provided n
initial segments.
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns:
a string representation of the object.
- Definition Classes
- Any
Checks if the path contains a trailing slash.
Checks if the path contains a trailing slash.