Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for touches (0.06 sec)

  1. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        Path temp = createTempFile();
        assertTrue(Files.exists(temp));
        Files.delete(temp);
        assertFalse(Files.exists(temp));
    
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
      }
    
      public void testTouchTime() throws IOException {
        Path temp = createTempFile();
        assertTrue(Files.exists(temp));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/MoreFiles.java

       * timestamp of the existing file at the given path to the current system time.
       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(Path path) throws IOException {
        checkNotNull(path);
    
        try {
          Files.setLastModifiedTime(path, FileTime.fromMillis(System.currentTimeMillis()));
        } catch (NoSuchFileException e) {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/MoreFiles.java

       * timestamp of the existing file at the given path to the current system time.
       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(Path path) throws IOException {
        checkNotNull(path);
    
        try {
          Files.setLastModifiedTime(path, FileTime.fromMillis(System.currentTimeMillis()));
        } catch (NoSuchFileException e) {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top