Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RemoveAll (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. android/guava/src/com/google/common/collect/Iterables.java

       */
      @CanIgnoreReturnValue
      public static boolean removeAll(Iterable<?> removeFrom, Collection<?> elementsToRemove) {
        return (removeFrom instanceof Collection)
            ? ((Collection<?>) removeFrom).removeAll(checkNotNull(elementsToRemove))
            : Iterators.removeAll(removeFrom.iterator(), elementsToRemove);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. cmd/utils.go

    		if err != nil {
    			return nil, err
    		}
    		prof.stopFn = func() ([]byte, error) {
    			pprof.StopCPUProfile()
    			err := f.Close()
    			if err != nil {
    				return nil, err
    			}
    			defer RemoveAll(dirPath)
    			return ioutilx.ReadFile(fn)
    		}
    	case madmin.ProfilerCPUIO:
    		// at 10k or more goroutines fgprof is likely to become
    		// unable to maintain its sampling rate and to significantly
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 31.3K bytes
    - Viewed (0)
  6. cmd/erasure.go

    				w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    				return w.Run(func() error {
    					wait := deleteCleanupSleeper.Timer(ctx)
    					removeAll(pathJoin(drivePath, minioMetaTmpDeletedBucket, ddir))
    					wait()
    					return nil
    				})
    			})
    		}(disk)
    	}
    	wg.Wait()
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  7. cmd/xl-storage.go

    	return errs
    }
    
    func (s *xlStorage) cleanupTrashImmediateCallers(ctx context.Context) {
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case entry := <-s.immediatePurge:
    			removeAll(entry)
    		}
    	}
    }
    
    const almostFilledPercent = 0.05
    
    func (s *xlStorage) diskAlmostFilled() bool {
    	info, err := s.diskInfoCache.Get()
    	if err != nil {
    		return false
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         * when we shorten [qualifier].
         */
        private fun removeRedundantElements(qualifier: KtElement) {
            typesToShorten.removeAll { it.element.qualifier?.isInsideOf(qualifier) == true }
            qualifiersToShorten.removeAll { it.element.receiverExpression.isInsideOf(qualifier) }
        }
    
        private fun KtElement.isAlreadyCollected(): Boolean {
            val thisElement = this
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    	siteNames := rreq.SiteNames
    	updatedPeers := make(map[string]madmin.PeerInfo)
    
    	for _, pi := range info.Sites {
    		updatedPeers[pi.DeploymentID] = pi
    		peerMap[pi.Name] = pi
    		if rreq.RemoveAll {
    			siteNames = append(siteNames, pi.Name)
    		}
    	}
    	for _, s := range siteNames {
    		pinfo, ok := peerMap[s]
    		if !ok {
    			return st, errSRConfigMissingError(errMissingSRConfig)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top