Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Add Directory method #2

Closed
b5 opened this issue Aug 22, 2017 · 2 comments
Closed

Add Directory method #2

b5 opened this issue Aug 22, 2017 · 2 comments

Comments

@b5
Copy link
Member

b5 commented Aug 22, 2017

casters need to be able to add a "directory" of byte slices. Maybe:

type Node struct {
   Name string
   Data []byte
   Children []*Node
}

type castore interface {
   ...
   AddTree(node *Node) error
}

from there we could add helper methods that convert things like .zip archives & unix directories into a tree of nodes.

@b5 b5 added the enhancement label Aug 22, 2017
@b5
Copy link
Member Author

b5 commented Aug 22, 2017

for the IPFS implementation we'd have to artificially create a files object to add from.

@b5
Copy link
Member Author

b5 commented Sep 25, 2017

should have structured recent commits as a PR, this is now closed with a recent refactor.

@b5 b5 closed this as completed Sep 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant