Home | History | Annotate | Download | only in filepath

Lines Matching refs:basepath

256 // joined to basepath with an intervening separator. That is,
257 // Join(basepath, Rel(basepath, targpath)) is equivalent to targpath itself.
258 // On success, the returned path will always be relative to basepath,
259 // even if basepath and targpath share no elements.
260 // An error is returned if targpath can't be made relative to basepath or if
263 func Rel(basepath, targpath string) (string, error) {
264 baseVol := VolumeName(basepath)
266 base := Clean(basepath)
280 return "", errors.New("Rel: can't make " + targpath + " relative to " + basepath)
306 return "", errors.New("Rel: can't make " + targpath + " relative to " + basepath)