Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toChildUrl (0.07 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

            // Test that toChildUrl method works correctly (used with childUri variable)
            FtpInfo ftpInfo = new FtpClient.FtpInfo("ftp://example.com/parent/", Constants.UTF_8);
    
            String childUrl1 = ftpInfo.toChildUrl("file.txt");
            assertEquals("ftp://example.com/parent/file.txt", childUrl1);
    
            String childUrl2 = ftpInfo.toChildUrl("subdir/file.txt");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                if (link.startsWith("/")) {
                    redirect = ftpInfo.toUrl(file.getLink());
                } else if (link.startsWith("../")) {
                    redirect = ftpInfo.toChildUrl(file.getLink());
                } else {
                    redirect = ftpInfo.toChildUrl("../" + file.getLink());
                }
                if (!uri.equals(redirect)) {
                    responseData.setHttpStatusCode(Constants.OK_STATUS);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 40K bytes
    - Viewed (0)
Back to top