Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sameWord (0.08 sec)

  1. src/path/filepath/path.go

    // Rel calls [Clean] on the result.
    func Rel(basepath, targpath string) (string, error) {
    	baseVol := VolumeName(basepath)
    	targVol := VolumeName(targpath)
    	base := Clean(basepath)
    	targ := Clean(targpath)
    	if sameWord(targ, base) {
    		return ".", nil
    	}
    	base = base[len(baseVol):]
    	targ = targ[len(targVol):]
    	if base == "." {
    		base = ""
    	} else if base == "" && filepathlite.VolumeNameLen(baseVol) > 2 /* isUNC */ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top