Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldSkip (0.05 sec)

  1. cmd/metacache-server-pool.go

    		funcReturnedMu.Lock()
    		funcReturned = true
    		funcReturnedMu.Unlock()
    	}()
    	// Write listing to results and saver.
    	go func() {
    		var returned bool
    		for entry := range inCh {
    			if o.shouldSkip(ctx, entry) {
    				continue
    			}
    			if !returned {
    				funcReturnedMu.Lock()
    				returned = funcReturned
    				funcReturnedMu.Unlock()
    				outCh <- entry
    				if returned {
    					xioutil.SafeClose(outCh)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon May 26 07:06:43 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    		console.Debugf(format+"\n", data...)
    	}
    }
    
    func (o *listPathOptions) debugln(data ...any) {
    	if serverDebugLog {
    		console.Debugln(data...)
    	}
    }
    
    func (o *listPathOptions) shouldSkip(ctx context.Context, entry metaCacheEntry) (yes bool) {
    	if !o.IncludeDirectories && (entry.isDir() || (!o.Versioned && entry.isObjectDir() && entry.isLatestDeletemarker())) {
    		return true
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.7K bytes
    - Viewed (0)
Back to top