Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava/src/com/google/common/io/MoreFiles.java

        }
    
        private BasicFileAttributes readAttributes() throws IOException {
          return Files.readAttributes(
              path,
              BasicFileAttributes.class,
              followLinks ? FOLLOW_LINKS : new LinkOption[] {NOFOLLOW_LINKS});
        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          BasicFileAttributes attrs;
          try {
            attrs = readAttributes();
          } catch (IOException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/MoreFiles.java

        }
    
        private BasicFileAttributes readAttributes() throws IOException {
          return Files.readAttributes(
              path,
              BasicFileAttributes.class,
              followLinks ? FOLLOW_LINKS : new LinkOption[] {NOFOLLOW_LINKS});
        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          BasicFileAttributes attrs;
          try {
            attrs = readAttributes();
          } catch (IOException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          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();
    
        // Check that source returns the right data
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top