aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
commitfbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3 (patch)
tree884f04c0ca73a2f165a0264bf5062b433ccf7a1a /c_ldirs.go
parentgood (diff)
downloadhardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.gz
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.bz2
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.xz
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.tar.zst
hardflip-fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3.zip
fine for now
Diffstat (limited to '')
-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
}