diff options
author | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
commit | 6f866cf8feb9d5c7707e337c6edb2335c1fa16d8 (patch) | |
tree | f471d53f293ad2991d9b241721323eb277a028d7 /c_ldirs.go | |
parent | clean (diff) | |
download | hardflip-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.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 +} |