Segment.this

Constructs a new path segment including an optional trailing separator.

struct Segment
@safe
this
(
string name
,
char separator = '\0'
)

Parameters

name string

The raw (unencoded) name of the path segment

separator char

Optional trailing path separator (e.g. '/')

Throws

A PathValidationException is thrown if the name contains characters that are invalid for the path type. In particular, any path separator characters may not be part of the name.

Meta