Skip to content

Commit

Permalink
Reworked List() to support version folder tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano committed Nov 8, 2023
1 parent c418a18 commit 1005944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,10 @@ func (c *Client) List(ctx context.Context, auth eosclient.Authorization, dpath s
versionFolderPath := getVersionFolder(fi.File)
if vf, ok := versionFolders[versionFolderPath]; ok {
fi.Inode = vf.Inode
fi.SysACL.Entries = append(fi.SysACL.Entries, vf.SysACL.Entries...)
if vf.SysACL != nil {
log.Debug().Str("func", "List").Str("path", dpath).Msg("vf.SysACL is nil")
fi.SysACL.Entries = append(fi.SysACL.Entries, vf.SysACL.Entries...)
}
for k, v := range vf.Attrs {
fi.Attrs[k] = v
}
Expand Down

0 comments on commit 1005944

Please sign in to comment.