// clean all the umoci metadata (config.json for the OCI runtime, umoci.json
// for its metadata, anything named *.mtree)
clean all the umoci metadata (config.json for the OCI runtime, umoci.json
for its metadata, anything named *.mtree)
// clean all the umoci metadata ( config . json for the OCI runtime umoci . json // for its metadata anything named * . mtree )
func cleanUmociMetadata(bundlePath string) error {
	ents, err := ioutil.ReadDir(bundlePath)
	if err != nil {
		return err
	}
	for _, ent := range ents {
		if ent.Name() == "rootfs" {
			continue
		}
		os.Remove(path.Join(bundlePath, ent.Name()))
	}
	return nil
}
func cleanUmociMetadata ( bundlePath string ) error { ents , err := ioutil . ReadDir ( bundlePath ) if err != nil { return err } for _ , ent := range ents { if ent . Name ( ) == " " { continue } os . Remove ( path . Join ( bundlePath , ent . Name ( ) ) ) } return nil }
clean all the umoci metadata (config.json for the OCI runtime, umoci.json
for its metadata, anything named *.mtree)
clean all the umoci metadata ( config . json for the OCI runtime umoci . json for its metadata anything named * . mtree )