vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function GenericPath.Segment.this

Constructs a new path segment including an optional trailing separator.

this (
  string name,
  char separator = '\x00'
);

Parameters

NameDescription
name The raw (unencoded) name of the path segment
separator 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.

Authors

Sönke Ludwig

Copyright

© 2012-2019 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.