Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FilePurgeVisitor (0.33 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

        }
    
        // Test FilePurgeVisitor
        public void test_FilePurgeVisitor() throws IOException {
            // Create a test file
            File testFile = new File(tempDir, "_1/_2/test.png");
            testFile.getParentFile().mkdirs();
            testFile.createNewFile();
            testFile.setLastModified(System.currentTimeMillis() - 2000L);
    
            // Since FilePurgeVisitor is an inner class and we can't directly test it,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

         * @return the number of files purged
         */
        public long purge(final long expiry) {
            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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top