assertEquals(uriBuildNormalized("file:///foo/bar", "baz"), "file:///foo/bar/baz"); assertEquals(uriBuildNormalized("file:///foo/bar", "../baz"), "file:///foo/baz"); version (Windows) assertEquals(uriBuildNormalized("file:///foo/bar", `c:\home\baz`), "file:///c%3A/home/baz"); else assertEquals(uriBuildNormalized("file:///foo/bar", "/homr/../home/baz"), "file:///home/baz"); assertEquals(uriBuildNormalized("file:///foo/bar", "../../../../baz"), "file:///../../baz");
Appends the path to the uri, potentially replacing the whole thing if the path is absolute. Cleans ./ and ../ sequences using uriNormalize.