Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pathsJoinPrefix (0.18 sec)

  1. cmd/namespace-lock.go

    	opsID := mustGetUUID()
    	if n.isDistErasure {
    		drwmutex := dsync.NewDRWMutex(&dsync.Dsync{
    			GetLockers: lockers,
    			Timeouts:   dsync.DefaultTimeouts,
    		}, pathsJoinPrefix(volume, paths...)...)
    		return &distLockInstance{drwmutex, opsID}
    	}
    	sort.Strings(paths)
    	return &localLockInstance{n, volume, paths, opsID}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    func retainSlash(s string) string {
    	if s == "" {
    		return s
    	}
    	return strings.TrimSuffix(s, SlashSeparator) + SlashSeparator
    }
    
    // pathsJoinPrefix - like pathJoin retains trailing SlashSeparator
    // for all elements, prepends them with 'prefix' respectively.
    func pathsJoinPrefix(prefix string, elem ...string) (paths []string) {
    	paths = make([]string, len(elem))
    	for i, e := range elem {
    		paths[i] = pathJoin(prefix, e)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top