aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
commit6f866cf8feb9d5c7707e337c6edb2335c1fa16d8 (patch)
treef471d53f293ad2991d9b241721323eb277a028d7 /c_ldirs.go
parentclean (diff)
downloadhardflip-6f866cf8feb9d5c7707e337c6edb2335c1fa16d8.tar.gz
hardflip-6f866cf8feb9d5c7707e337c6edb2335c1fa16d8.tar.bz2
hardflip-6f866cf8feb9d5c7707e337c6edb2335c1fa16d8.tar.xz
hardflip-6f866cf8feb9d5c7707e337c6edb2335c1fa16d8.tar.zst
hardflip-6f866cf8feb9d5c7707e337c6edb2335c1fa16d8.zip
folding visually
Diffstat (limited to 'c_ldirs.go')
-rw-r--r--c_ldirs.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index 64c9a4e..b32db51 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/c_ldirs.go
- * Mon Jan 08 17:44:15 2024
+ * Tue Jan 09 12:06:44 2024
* Joe
*
* the directories linked list
@@ -116,3 +116,12 @@ func (dir *DirsNode) count_hosts() int {
}
return dir.lhost.last.ID + 1
}
+
+func (dir *DirsNode) folded_parents() bool {
+ for ptr := dir.Parent; ptr.Parent != nil; ptr = ptr.Parent {
+ if ptr.Folded == true {
+ return true
+ }
+ }
+ return false
+}