Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hashPath (0.17 sec)

  1. cmd/data-usage-cache.go

    // If the parent does not exist, it will be added.
    func (d *dataUsageCache) replace(path, parent string, e dataUsageEntry) {
    	hash := hashPath(path)
    	if d.Cache == nil {
    		d.Cache = make(map[string]dataUsageEntry, 100)
    	}
    	d.Cache[hash.Key()] = e
    	if parent != "" {
    		phash := hashPath(parent)
    		p := d.Cache[phash.Key()]
    		p.addChild(hash)
    		d.Cache[phash.Key()] = p
    	}
    }
    
    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

    			}
    		}
    
    		// Transfer existing
    		if !into.Compacted {
    			for _, folder := range existingFolders {
    				h := hashPath(folder.name)
    				f.updateCache.copyWithChildren(&f.oldCache, h, folder.parent)
    			}
    		}
    		// Scan new...
    		for _, folder := range newFolders {
    			h := hashPath(folder.name)
    			// Add new folders to the update tree so totals update for these.
    			if !into.Compacted {
    				var foundAny bool
    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