aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_ldirs.go')
-rw-r--r--c_ldirs.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index f78ef97..096dd72 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -49,9 +49,10 @@ package main
type DirsNode struct {
ID uint64
- name string
+ Name string
+ Parent *DirsNode
+ Depth uint16
lhost *HostList
- parent *DirsNode
next *DirsNode
}
@@ -99,8 +100,8 @@ func (ldirs *DirsList) path(node *DirsNode) string {
}
curr := node
for curr != nil {
- path = curr.name + "/" + path
- curr = curr.parent
+ path = curr.Name + "/" + path
+ curr = curr.Parent
}
return path
}