diff options
author | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
commit | fbe50ac4c3ed53f55bfdafaf793eab5efc30d5d3 (patch) | |
tree | 884f04c0ca73a2f165a0264bf5062b433ccf7a1a /c_ldirs.go | |
parent | good (diff) | |
download | hardflip-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.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 } |