- rel, err := filepath.Rel(Cwd, path.Join(cwd, m["Target"]))
+ fmt.Println(cwdMustRel(cwd, m["Target"]))
+ }
+ if doFile == "" {
+ ok = false
+ } else {
+ p := make([]string, 0, upLevels+2)
+ p = append(p, cwd)
+ for i := 0; i < upLevels; i++ {
+ p = append(p, "..")
+ }
+ p = append(p, doFile)
+ rel, err := filepath.Rel(Cwd, path.Join(p...))