Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for baseDirectory (1.85 sec)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

         * @param baseDirectory the base directory that the path must be within (must not be {@literal null})
         * @return true if the path is safe (within the base directory), false otherwise
         */
        public static boolean isPathSafe(final Path pathToCheck, final Path baseDirectory) {
            assertArgumentNotNull("pathToCheck", pathToCheck);
            assertArgumentNotNull("baseDirectory", baseDirectory);
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

         *            the root directory
         * @param baseDirectory
         *            the base directory
         * @return a {@link File} representing the base directory
         */
        protected static File getBaseDir(final File rootDir, final String baseDirectory) {
            assertArgumentNotNull("rootDir", rootDir);
    
            File baseDir = rootDir;
            if (baseDirectory != null) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

            final String path = ResourceUtil.getResourcePath(getClass());
            final int pos = path.lastIndexOf("/");
            final String baseDirectory = path.substring(0, pos);
            ResourceTraversalUtil.forEach(rootDir, baseDirectory, (ResourceHandler) (path1, is) -> {
                try {
                    if (count < 10) {
                        System.out.println(path1);
                    }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top