- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for canonicalization (0.06 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
assertEquals(url, smbFile.getPath()); } @Test public void testGetCanonicalPath() throws MalformedURLException { // Test path canonicalization (removing . and ..) assertEquals("smb1://server/share/file.txt", new SmbFile("smb1://server/share/dir/../file.txt").getCanonicalPath());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.5K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceLocatorTest.java
assertEquals("file.txt", loc.getName()); assertEquals("smb://server/share/path/", loc.getParent()); assertEquals(url, loc.getPath()); // canonicalisation simply removes '.' and '..' assertEquals("smb://server/share/path/filetxt", loc.getCanonicalURL()); assertFalse(loc.isRoot()); } } @Nested
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0)