Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for copyWithChildren (0.23 sec)

  1. cmd/data-usage-cache.go

    		p.addChild(hash)
    		d.Cache[parent.Key()] = p
    	}
    }
    
    // copyWithChildren will copy entry with hash from src if it exists along with any children.
    // If a parent is specified it will be added to that if not already there.
    // If the parent does not exist, it will be added.
    func (d *dataUsageCache) copyWithChildren(src *dataUsageCache, hash dataUsageHash, parent *dataUsageHash) {
    	if d.Cache == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  2. cmd/data-scanner.go

    				f.updateCache.deleteRecursive(h)
    				f.updateCache.copyWithChildren(&f.newCache, h, folder.parent)
    				f.sendUpdate()
    			}
    		}
    
    		// Transfer existing
    		if !into.Compacted {
    			for _, folder := range existingFolders {
    				h := hashPath(folder.name)
    				f.updateCache.copyWithChildren(&f.oldCache, h, folder.parent)
    			}
    		}
    		// Scan new...
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:19 GMT 2024
    - 46.9K bytes
    - Viewed (0)
Back to top