Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createNewFile (0.3 sec)

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

            dir1.mkdirs();
            File expiredFile = new File(dir1, "expired.png");
            expiredFile.createNewFile();
            expiredFile.setLastModified(System.currentTimeMillis() - 10000L);
    
            File recentFile = new File(dir1, "recent.png");
            recentFile.createNewFile();
            recentFile.setLastModified(System.currentTimeMillis());
    
            // Override purge to avoid client operations
    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/test/java/org/codelibs/fess/job/ExecJobTest.java

            File jar1 = new File(libDir, "test1.jar");
            File jar2 = new File(libDir, "test2.JAR");
            File notJar = new File(libDir, "test.txt");
            assertTrue(jar1.createNewFile());
            assertTrue(jar2.createNewFile());
            assertTrue(notJar.createNewFile());
    
            execJob.testAppendJarFile(":", buf, libDir, "/base/path/");
    
            String result = buf.toString();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

        file.mkdir();
        return file;
      }
    
      @CanIgnoreReturnValue
      private File newFile(String name) throws IOException {
        File file = new File(rootDir, name);
        file.createNewFile();
        return file;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

                    return false;
                }
    
                // Simulate thumbnail generation
                try {
                    if (!outputFile.exists()) {
                        outputFile.createNewFile();
                    }
                    // Write some dummy content to simulate actual thumbnail
                    Files.write(outputFile.toPath(), ("thumbnail-" + thumbnailId).getBytes());
                    return true;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
          throw new IOException("Unable to update modification time of " + file);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
          throw new IOException("Unable to update modification time of " + file);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top