// ForEachLink implements the `Directory` interface.
ForEachLink implements the `Directory` interface.
// ForEachLink implements the ` Directory ` interface .
func (d *BasicDirectory) ForEachLink(_ context.Context, f func(*ipld.Link) error) error {
	for _, l := range d.node.Links() {
		if err := f(l); err != nil {
			return err
		}
	}
	return nil
}
func ( d * BasicDirectory ) ForEachLink ( _ context . Context , f func ( * ipld . Link ) error ) error { for _ , l := range d . node . Links ( ) { if err := f ( l ) ; err != nil { return err } } return nil }
ForEachLink implements the `Directory` interface.
ForEachLink implements the ` Directory ` interface .