diff options
author | Joe <rbo@gmx.us> | 2024-03-01 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-01 20:20:20 +0100 |
commit | 721d2697f777c5d8050f37f735a9b74eb69555b8 (patch) | |
tree | 041dafee9751de4ef98c33bc723347afcc697aaf /src/c_litems.go | |
parent | fuckye (diff) | |
download | hardflip-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.go | 12 |
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() +} |