Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for deleteRecursive (0.13 sec)

  1. cmd/data-usage-cache.go

    			return &found
    		}
    	}
    	return nil
    }
    
    // deleteRecursive will delete an entry recursively, but not change its parent.
    func (d *dataUsageCache) deleteRecursive(h dataUsageHash) {
    	if existing, ok := d.Cache[h.String()]; ok {
    		// Delete first if there should be a loop.
    		delete(d.Cache, h.Key())
    		for child := range existing.Children {
    			d.deleteRecursive(dataUsageHash(child))
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  2. cmd/data-scanner.go

    				return
    			}
    			if !into.Compacted {
    				h := dataUsageHash(folder.name)
    				into.addChild(h)
    				// We scanned a folder, optionally send update.
    				f.updateCache.deleteRecursive(h)
    				f.updateCache.copyWithChildren(&f.newCache, h, folder.parent)
    				f.sendUpdate()
    			}
    		}
    
    		// Transfer existing
    		if !into.Compacted {
    			for _, folder := range existingFolders {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top