Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getFileAttributeView (0.13 sec)

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

          assertTrue(file.exists());
          assertThat(file.getName()).contains("FileBackedOutputStream");
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(file.toPath(), PosixFileAttributeView.class)
                    .readAttributes();
            assertThat(attributes.permissions()).containsExactly(OWNER_READ, OWNER_WRITE);
          }
        }
        out.close();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/MoreFiles.java

      private static boolean isDirectory(
          SecureDirectoryStream<Path> dir, Path name, LinkOption... options) throws IOException {
        return dir.getFileAttributeView(name, BasicFileAttributeView.class, options)
            .readAttributes()
            .isDirectory();
      }
    
      /**
       * Returns a predicate that returns the result of {@link java.nio.file.Files#isRegularFile(Path,
    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

      private static boolean isDirectory(
          SecureDirectoryStream<Path> dir, Path name, LinkOption... options) throws IOException {
        return dir.getFileAttributeView(name, BasicFileAttributeView.class, options)
            .readAttributes()
            .isDirectory();
      }
    
      /**
       * Returns a predicate that returns the result of {@link java.nio.file.Files#isRegularFile(Path,
    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