removeDotSegments

fnstring removeDotSegments(string input) @safe

Remove dot-segments from a path per RFC 3986 §5.2.4.

Collapses occurrences of `.` and `..` and their path prefixes according to the remove-dot-segments algorithm.

Parameters

inputPath string to process.

Returns

The path with dot-segments removed.