Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for topat (0.32 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

        /**
         * Test isPathSafe with safe path
         *
         * @throws Exception
         */
        @Test
        public void testIsPathSafe_SafePath() throws Exception {
            final Path baseDir = tempFolder.getRoot().toPath();
            final Path safePath = baseDir.resolve("subdir/file.txt");
    
            assertTrue("Safe path should be allowed", FileUtil.isPathSafe(safePath, baseDir));
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

         */
        protected FileOwnerAttributeView parseFileOwnerAttribute(final ResponseData responseData, final File file) {
            try {
                final FileOwnerAttributeView ownerAttrView = Files.getFileAttributeView(file.toPath(), FileOwnerAttributeView.class);
                if (ownerAttrView != null) {
                    final UserPrincipal owner = ownerAttrView.getOwner();
                    if (owner != null) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            ResponseData data = new ResponseData();
    
            File tempFile = File.createTempFile("test", ".txt");
            try {
                String content = "File content";
                Files.write(tempFile.toPath(), content.getBytes(StandardCharsets.UTF_8));
    
                data.setResponseBody(tempFile, false);
    
                assertTrue(data.hasResponseBody());
                assertNotNull(data.getResponseBody());
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/FileUtil.java

            assertArgumentNotNull("fileToCheck", fileToCheck);
            assertArgumentNotNull("baseDirectory", baseDirectory);
    
            return isPathSafe(fileToCheck.toPath(), baseDirectory.toPath());
        }
    
        /**
         * Returns the canonical path string for this abstract pathname.
         *
         * @param file the file (must not be {@literal null})
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            }
        }
    
        @Test
        public void testFileBasedCacheClose() throws IOException {
            tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir);
            Files.write(tempFile.toPath(), "Hello, World!".getBytes());
            assertTrue(tempFile.exists());
    
            ContentCache cache = new ContentCache(tempFile);
    
            // Close should delete the file
            cache.close();
    
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

            if (!baseDir.exists()) {
                return 0;
            }
            try {
                final FilePurgeVisitor visitor = new FilePurgeVisitor(baseDir.toPath(), imageExtention, expiry);
                Files.walkFileTree(baseDir.toPath(), visitor);
                return visitor.getCount();
            } catch (final Exception e) {
                throw new JobProcessingException(e);
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

                if (!isInMemory() && !done) {
                    final File file = super.getFile();
                    if (file != null) {
                        try {
                            Files.deleteIfExists(file.toPath());
                        } catch (final IOException e) {
                            // Log the error but don't throw to avoid masking exceptions from the main operation
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/curl/io/ContentCache.java

            }
            this.data = null;
            this.file = file;
        }
    
        @Override
        public void close() throws IOException {
            if (file != null) {
                Files.delete(file.toPath());
            }
        }
    
        /**
         * Returns an InputStream to read the content from the cache.
         * If the content is stored in a file, a FileInputStream is returned.
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

                return nameSet.stream().sorted().collect(Collectors.toList());
            }
            for (final File jarFile : jarFiles) {
                try (FileSystem fs = FileSystems.newFileSystem(jarFile.toPath(), ClassLoader.getSystemClassLoader())) {
                    final Path xmlPath = fs.getPath("fess_ds++.xml");
                    if (!Files.exists(xmlPath)) {
                        if (logger.isDebugEnabled()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                                final File baseJspFile = getDesignJspFile("/WEB-INF/view/" + e.getValue());
                                try {
                                    final Path jspPath = jspFile.toPath();
                                    Files.copy(baseJspFile.toPath(), jspPath);
                                    fileList.add(jspPath);
                                } catch (final IOException ex) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
Back to top