aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_litems.go
diff options
context:
space:
mode:
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()
+}