Path.normalize

Normalize path.

struct Path
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