Skip to content

Commit

Permalink
make UnixFSBasicDir implement the ADL interface
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Sep 27, 2021
1 parent 1b1b09b commit 59638bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions directory/basicdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

var _ ipld.Node = UnixFSBasicDir(nil)
var _ schema.TypedNode = UnixFSBasicDir(nil)
var _ ipld.ADL = UnixFSBasicDir(nil)

type UnixFSBasicDir = *_UnixFSBasicDir

Expand All @@ -27,6 +28,10 @@ func NewUnixFSBasicDir(ctx context.Context, substrate dagpb.PBNode, nddata data.
return &_UnixFSBasicDir{_substrate: substrate}, nil
}

func (n UnixFSBasicDir) Substrate() ipld.Node {
return n._substrate
}

func (n UnixFSBasicDir) Kind() ipld.Kind {
return n._substrate.Kind()
}
Expand Down

0 comments on commit 59638bd

Please sign in to comment.