Skip to content

Commit

Permalink
cmd/yoda2root: handle YODA files with a directory structure
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
sbinet committed May 6, 2021
1 parent b19b775 commit c2bd848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/yoda2root/main.go
Expand Up @@ -122,7 +122,7 @@ func convert(w *riofs.File, fname string) error {
default:
key = v.Name()
}
err = w.Put(key, obj)
err = riofs.Dir(w).Put(key, obj)
if err != nil {
return fmt.Errorf("error writing %q from YODA file [%s]: %w", v.Name(), fname, err)
}
Expand Down

0 comments on commit c2bd848

Please sign in to comment.