Browse Source

filepath.Join

Michael Yang 1 năm trước cách đây
mục cha
commit
a385382ff5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}