diff --git a/group/description.go b/group/description.go index 0d5a080..bfc3fec 100644 --- a/group/description.go +++ b/group/description.go @@ -441,6 +441,15 @@ func readDescription(name string, allowSubgroups bool) (*Description, error) { if err != nil { return nil, err } + err = upgradeDescription(&desc) + if err != nil { + return nil, err + } + + desc.FileName = fileName + desc.fileSize = fi.Size() + desc.modTime = fi.ModTime() + if isSubgroup { if !desc.AutoSubgroups { return nil, os.ErrNotExist @@ -450,15 +459,6 @@ func readDescription(name string, allowSubgroups bool) (*Description, error) { desc.Description = "" } - desc.FileName = fileName - desc.fileSize = fi.Size() - desc.modTime = fi.ModTime() - - err = upgradeDescription(&desc) - if err != nil { - return nil, err - } - return &desc, nil }