- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for getCanonicalPath (0.07 sec)
-
src/main/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRoot.java
for (final WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) { try (final JarFile jarFile = new JarFile(possibleJar.getCanonicalPath())) { final Manifest manifest = jarFile.getManifest(); if (manifest != null && manifest.getEntries() != null) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
* @return the canonical pathname string representing the same file or directory as this abstract pathname */ public static String getCanonicalPath(final File file) { assertArgumentNotNull("file", file); try { return file.getCanonicalPath(); } catch (final IOException e) { throw new IORuntimeException(e); } } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
assertEquals("smb1://server/share/file.txt", new SmbFile("smb1://server/share/dir/../file.txt").getCanonicalPath()); assertEquals("smb1://server/file.txt", new SmbFile("smb1://server/share/../file.txt").getCanonicalPath()); assertEquals("smb1://server/share/", new SmbFile("smb1://server/share/").getCanonicalPath()); } @Test public void testGetUncPath() throws MalformedURLException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java
if (file.isDirectory()) { traverseFileSystem(rootDir, file, handler); } else { final int pos = FileUtil.getCanonicalPath(rootDir).length(); final String filePath = FileUtil.getCanonicalPath(file); final String resourcePath = filePath.substring(pos + 1).replace('\\', '/'); final InputStream is = InputStreamUtil.create(file);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/zip/ZipFileUtil.java
final int pos = urlString.lastIndexOf('!'); final String zipFilePath = urlString.substring(0, pos); final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8")); return FileUtil.getCanonicalPath(zipFile); } /** * Closes the Zip file. * <p> * If {@link ZipFile#close()} throws an exception, an error message is logged. The exception is not rethrown. * </p> *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/jar/JarFileUtil.java
final int pos = nestedUrlPath.lastIndexOf('!'); final String jarFilePath = nestedUrlPath.substring(0, pos); final File jarFile = new File(URLUtil.decode(jarFilePath, "UTF8")); return FileUtil.getCanonicalPath(jarFile); } /** * Closes the JAR file. * <p> * If {@link JarFile#close()} throws an exception, an error message is logged. The exception is not re-thrown. * </p> *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testGetCanonicalPath() { // Act & Assert assertEquals("smb://localhost/share/file.txt", smbFile.getCanonicalPath()); } @Test void testGetServer() { // Act & Assert assertEquals("localhost", smbFile.getServer()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* this method will result in an <code>SmbFile</code> that is equal to * the original. * * @return The canonicalized URL of this SMB resource. */ public String getCanonicalPath() { final String str = url.getAuthority(); getUncPath0(); if (str.length() > 0) { return "smb1://" + url.getAuthority() + canon; } return "smb1://";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
* this method will result in an <code>SmbFile</code> that is equal to * the original. * * @return The canonicalized URL of this SMB resource. */ public String getCanonicalPath() { return this.fileLocator.getCanonicalURL(); } /** * Retrieves the share associated with this SMB resource. In
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)