Commit 60d738bc authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

new files and directories appear to work properly

parent 8dda7830
...@@ -65,6 +65,16 @@ func (n *Node) AddNodeLink(name string, that *Node) error { ...@@ -65,6 +65,16 @@ func (n *Node) AddNodeLink(name string, that *Node) error {
return nil return nil
} }
func (n *Node) RemoveNodeLink(name string) error {
for i, l := range n.Links {
if l.Name == name {
n.Links = append(n.Links[:i], n.Links[i+1:]...)
return nil
}
}
return u.ErrNotFound
}
// Size returns the total size of the data addressed by node, // Size returns the total size of the data addressed by node,
// including the total sizes of references. // including the total sizes of references.
func (n *Node) Size() (uint64, error) { func (n *Node) Size() (uint64, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment