Contents

segments

The number of path levels to preserve when parsing.

Declaration

var segments: UInt

Discussion

With a path of /a/b/c/d, setting segments to 2 keeps /a/b.

Use a value of 0 to keep all path segments.

See Also

Working with path options