Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for RemoveAll (0.19 sec)

  1. cmd/jwt_test.go

    func TestWebRequestAuthenticate(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	creds := globalActiveCred
    	token, err := getTokenString(creds.AccessKey, creds.SecretKey)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. cmd/os-reliable.go

    			// here.
    			return errFileAccessDenied
    		}
    	}
    	return err
    }
    
    // Reliably retries os.RemoveAll if for some reason os.RemoveAll returns
    // syscall.ENOTEMPTY (children has files).
    func reliableRemoveAll(dirPath string) (err error) {
    	i := 0
    	for {
    		// Removes all the directories and files.
    		if err = RemoveAll(dirPath); err != nil {
    			// Retry only for the first retryable error.
    			if isSysErrNotEmpty(err) && i == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        }
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return asMap().get(key) != null;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
        return MoreObjects.firstNonNull(asMap().remove(key), unmodifiableEmptyCollection());
      }
    
      Collection<V> unmodifiableEmptyCollection() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

          return get((K) key).remove(value);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Collection<V2> removeAll(@CheckForNull Object key) {
          return transform((K) key, fromMultimap.removeAll(key));
        }
    
        @Override
        public Collection<V2> replaceValues(@ParametricNullness K key, Iterable<? extends V2> values) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 86.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().remove(o);
          }
        }
    
        @Override
        public boolean removeAll(Collection<?> c) {
          synchronized (mutex) {
            return delegate().removeAll(c);
          }
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          synchronized (mutex) {
            return delegate().retainAll(c);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

       * Iterables.frequency(occurrencesToRemove, e))}.
       *
       * <p>This is <i>not</i> the same as {@code multisetToModify.} {@link Multiset#removeAll
       * removeAll}{@code (occurrencesToRemove)}, which removes all occurrences of elements that appear
       * in {@code occurrencesToRemove}. However, this operation <i>is</i> equivalent to, albeit
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 41.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p>This is essentially the same as {@code
       * TreeRangeSet.create(this).removeAll(other.complement())} except it returns an {@code
       * ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> intersection(RangeSet<C> other) {
        RangeSet<C> copy = TreeRangeSet.create(this);
        copy.removeAll(other.complement());
        return copyOf(copy);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p>This is essentially the same as {@code
       * TreeRangeSet.create(this).removeAll(other.complement())} except it returns an {@code
       * ImmutableRangeSet}.
       *
       * @since 21.0
       */
      public ImmutableRangeSet<C> intersection(RangeSet<C> other) {
        RangeSet<C> copy = TreeRangeSet.create(this);
        copy.removeAll(other.complement());
        return copyOf(copy);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

    public final class Sets {
      private Sets() {}
    
      /**
       * {@link AbstractSet} substitute without the potentially-quadratic {@code removeAll}
       * implementation.
       */
      abstract static class ImprovedAbstractSet<E extends @Nullable Object> extends AbstractSet<E> {
        @Override
        public boolean removeAll(Collection<?> c) {
          return removeAllImpl(this, c);
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

                return true;
              }
            }
            return false;
          }
        }
    
        @Override
        public boolean removeAll(Collection<?> c) {
          try {
            return super.removeAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            Set<K> toRemove = Sets.newHashSet();
            for (Entry<K, V> entry : map().entrySet()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 159.3K bytes
    - Viewed (0)
Back to top