Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fileExists (0.08 sec)

  1. src/main/webapp/WEB-INF/fe.tld

        </example>
      </function>
    
      <function>
        <description>
          Check if a file exists.
        </description>
        <name>fileExists</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>boolean fileExists(java.lang.String)</function-signature>
        <example>
          ${fe:fileExists(path)}
        </example>
      </function>
    
      <function>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (value == null) {
                return StringUtil.EMPTY;
            }
            return Base64.getUrlEncoder().encodeToString(value.getBytes(Constants.CHARSET_UTF_8));
        }
    
        public static boolean fileExists(final String path) {
            final File file = new File(LaServletContextUtil.getServletContext().getRealPath(path));
            return file.exists();
        }
    
        public static String url(final String input) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top