Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createNewFile (0.22 sec)

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

        try {
          assertThat(temp.exists()).isTrue();
          assertThat(temp.isDirectory()).isTrue();
          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

        try {
          assertThat(temp.exists()).isTrue();
          assertThat(temp.isDirectory()).isTrue();
          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. 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;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  4. 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;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.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);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top