aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-11 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-11 20:20:20 +0100
commitddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8 (patch)
treeadb630564b940470b01931cc46f103ab4179a381 /c_ldirs.go
parentcool (diff)
downloadhardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.gz
hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.bz2
hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.xz
hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.zst
hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.zip
gogo
Diffstat (limited to 'c_ldirs.go')
-rw-r--r--c_ldirs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index be1a225..688c119 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -163,6 +163,8 @@ func (dir *DirsNode) count_elements(skip_folds bool) int {
for ptr := dir.next; ptr != nil && ptr.Depth > dir.Depth; ptr = ptr.next {
if skip_folds == true && ptr.Folded == true {
items += 1
+ // HACK: key to the map is the key
+ // TODO: fix you shit
} else {
items += ptr.count_hosts() + 1
}