Explorar o código

filepath.Join

Michael Yang hai 1 ano
pai
achega
a385382ff5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/manifest.go

+ 1 - 1
server/manifest.go

@@ -118,7 +118,7 @@ func Manifests() (map[model.Name]*Manifest, error) {
 	}
 
 	// TODO(mxyng): use something less brittle
-	matches, err := filepath.Glob(fmt.Sprintf("%s/*/*/*/*", manifests))
+	matches, err := filepath.Glob(filepath.Join(manifests, "*", "*", "*", "*"))
 	if err != nil {
 		return nil, err
 	}