Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isSymbolicLink (0.11 sec)

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

          // Don't return a size for directories or symbolic links; their sizes are implementation
          // specific and they can't be read as bytes using the read methods anyway.
          if (attrs.isDirectory() || attrs.isSymbolicLink()) {
            return Optional.absent();
          }
    
          return Optional.of(attrs.size());
        }
    
        @Override
        public long size() throws IOException {
    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

          // Don't return a size for directories or symbolic links; their sizes are implementation
          // specific and they can't be read as bytes using the read methods anyway.
          if (attrs.isDirectory() || attrs.isSymbolicLink()) {
            return Optional.absent();
          }
    
          return Optional.of(attrs.size());
        }
    
        @Override
        public long size() throws IOException {
    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. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

          MoreFiles.deleteRecursively(file);
    
          assertFalse(Files.exists(file, NOFOLLOW_LINKS));
    
          Path symlink = fs.getPath("/symlinktodir");
          assertTrue(Files.isSymbolicLink(symlink));
    
          Path realSymlinkTarget = symlink.toRealPath();
          assertTrue(Files.isDirectory(realSymlinkTarget, NOFOLLOW_LINKS));
    
          MoreFiles.deleteRecursively(symlink);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top