aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_litems.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
commit721d2697f777c5d8050f37f735a9b74eb69555b8 (patch)
tree041dafee9751de4ef98c33bc723347afcc697aaf /src/c_litems.go
parentfuckye (diff)
downloadhardflip-721d2697f777c5d8050f37f735a9b74eb69555b8.tar.gz
hardflip-721d2697f777c5d8050f37f735a9b74eb69555b8.tar.bz2
hardflip-721d2697f777c5d8050f37f735a9b74eb69555b8.tar.xz
hardflip-721d2697f777c5d8050f37f735a9b74eb69555b8.tar.zst
hardflip-721d2697f777c5d8050f37f735a9b74eb69555b8.zip
commit
Diffstat (limited to '')
-rw-r--r--src/c_litems.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/c_litems.go b/src/c_litems.go
index 229df41..67240c3 100644
--- a/src/c_litems.go
+++ b/src/c_litems.go
@@ -219,3 +219,15 @@ func (litems *ItemsList) reset_id() {
ptr.next.ID = ptr.ID + 1
}
}
+
+func (item *ItemsNode) path_node() *DirsNode {
+ if item.is_dir() == true {
+ return item.Dirs
+ } else {
+ return item.Host.Parent
+ }
+}
+
+func (item *ItemsNode) path() string {
+ return item.path_node().path()
+}