Path.normalize

Normalize path.

struct Path
@safe pure nothrow const
normalize
()

Return Value

Type: Path

new normalized Path.

Examples

import dshould;

version(Posix) {
    Path("foo").normalize.toString.should.equal("foo");
    Path("../foo/../moo").normalize.toString.should.equal("../moo");
    Path("/foo/./moo/../bar").normalize.toString.should.equal("/foo/bar");
}

Meta