Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for InsecureRecursiveDeleteException (0.41 sec)

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

    @ElementTypesAreNonnullByDefault
    // Users are unlikely to use this unless they're already interacting with MoreFiles and Path.
    @IgnoreJRERequirement
    public final class InsecureRecursiveDeleteException extends FileSystemException {
    
      public InsecureRecursiveDeleteException(@CheckForNull String file) {
        super(file, null, "unable to guarantee security of recursive delete");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/MoreFiles.java

      private static void checkAllowsInsecure(Path path, RecursiveDeleteOption[] options)
          throws InsecureRecursiveDeleteException {
        if (!Arrays.asList(options).contains(RecursiveDeleteOption.ALLOW_INSECURE)) {
          throw new InsecureRecursiveDeleteException(path.toString());
        }
      }
    
      /**
       * Adds the given exception to the given collection, creating the collection if it's null. Returns
    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 void checkAllowsInsecure(Path path, RecursiveDeleteOption[] options)
          throws InsecureRecursiveDeleteException {
        if (!Arrays.asList(options).contains(RecursiveDeleteOption.ALLOW_INSECURE)) {
          throw new InsecureRecursiveDeleteException(path.toString());
        }
      }
    
      /**
       * Adds the given exception to the given collection, creating the collection if it's null. Returns
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

          try (FileSystem fs = newTestFileSystem()) {
            Path dir = fs.getPath("dir");
            assertEquals(6, MoreFiles.listFiles(dir).size());
    
            assertThrows(InsecureRecursiveDeleteException.class, () -> method.delete(dir));
    
            assertTrue(Files.exists(dir));
            assertEquals(6, MoreFiles.listFiles(dir).size());
          }
        }
      }
    
    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